harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunrong Lai (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4744) [classlib][luni] Missing system porperties to set defaultLocale which is needed to enable i18n
Date Wed, 05 Sep 2007 11:14:32 GMT
[classlib][luni] Missing system porperties to set defaultLocale which is needed to enable i18n
----------------------------------------------------------------------------------------------

                 Key: HARMONY-4744
                 URL: https://issues.apache.org/jira/browse/HARMONY-4744
             Project: Harmony
          Issue Type: Bug
         Environment: Win32, Linux32
            Reporter: Chunrong Lai



  See below code in modules/luni/src/main/java/util/Locale.java
static {
  String language = AccessController.doPrivileged(new PriviAction<String>("user.language",
"en")); 
  String region = AccessController.doPrivileged(new PriviAction<String>("user.country",
"US")); 
  String variant = AccessController.doPrivileged(new PriviAction<String>("user.variant",
"")); 
  defaultLocale = new Locale(language, region, variant);
}
  So in Harmony the defaultLocale is always en_US (in every platforms) because we have not
set the system properties (see comments in modules/luni-kernel/src/main/java/java/lang/System.java).

  This disable the common internationalization-of-Java-applications which depend on locale
setting (Locale.getDefault())  to choose from different resources. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message