harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4744) [classlib][luni] Missing system porperties to set defaultLocale which is needed to enable i18n
Date Tue, 27 Nov 2007 14:42:43 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545860
] 

Alexei Zakharov commented on HARMONY-4744:
------------------------------------------

Guys, it looks like HARMONY-4735 was filed about the same (or very close) issue too.

> [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
>          Components: Classlib
>         Environment: Win32, Linux32
>            Reporter: Chunrong Lai
>            Assignee: Leo Li
>
>   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