-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
1.1.5
-
x86
-
windows_nt
Name: rm29839 Date: 12/08/97
This is a followup of a previous bug submission.
When making Internationalized applications,
with JDK1.1.4, if the -Duser.language= option
is used on the java command line, the Locale
was determined from this system property and
program operation proceeded as expected.
With JDK1.1.5, however, the System seems to
disregard the options specified on the command
line and install a default Locale determined from
the user system environment.
In my case, I'm writing a bilingual Japanese/English
app in a Japanese environment, but despite
putting -Duser.language=en as a command line
argument, the default Locale returned from
Local.getDefault() was ja_JP.
To make matters worse, if I specify the language
as english and the default appears to be
japanese, when i load a ResourceBundle the
japanese bundle is loaded but the labels
and such are interpreted as english and i get
a whole lot of garbage characters displayed
instead of the japanese labels
(i.e. 2 problems: wrong ResourceBundle was loaded,
and ResourceBundle interpreted incorrectly)
(Review ID: 21393)
======================================================================
- duplicates
-
JDK-4097811 System property user.language and Locales not connected anymore in JDK1.1.5
- Closed