>>>>> David Li writes:
David> These two determines what the default locale will
David> be. However GetPropertyAction is in sun.security.action. I
David> have a simple program like this:
David> import java.util.Locale;
David> public class TestLocale
David> {
David> public static void main (String args[]) {
David> System.out.println (Locale.getDefault());
David> }
David> }
David> I have tried running it with and without -Duser.language=zh
David> -Duser.region=zh_TW. Those parameters don't seem to affect
David> the locale setting.
Instead of setting the properties you should set LC_ALL:
$ LC_ALL=zh_TW.Big5 java TestLocale
zh_TW
$ LC_ALL=deutsch java TestLocale
de_DE
$ LC_ALL=japanese java TestLocale
ja_JP
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]