Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7300
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Locale.getDefault bug in JDK 1.7 |
| Date | 2011-08-22 11:22 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <dfb5840e-45d2-4ac6-9dfd-db7c4e4b6cf9@glegroupsg2000goo.googlegroups.com> (permalink) |
| References | <k4u357dqe5lejh08eiadvd2ad2kji1ivho@4ax.com> <j2u503$ai1$3@dont-email.me> |
markspace wrote: > Roedy Green wrote: >> I noticed that Locale.getDefault is returning the wrong locale in JDK >> 1.7. It used to work fine. It is not returning USA even though my OS >> is configured as Canada. [context restoration] >> D E F A U L T >> display:English (United States) >> country:US >> ISO3:USA >> display country:United States >> language:en >> display language:English ... > > I'm confused. It is *NOT* returning USA? Even though your OS is set to CA? > > What do you expect it to return? Roedy's output shows that the locale default is US. However, it doesn't show how he thinks the OS is set to CA; presumably it's set in his BIOS or other low-level. I'd like to see Roedy's program expanded to show the results of 'getDefault()' after a 'setDefault()' to Canada. I'd also like to see the values of the OS's LANG and LANGUAGE envars, or equivalents. Finally, I'd like to see what Java has for the user.language, user.country, and user.variant system properties. -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-21 23:56 -0700
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Roedy Green <see_website@mindprod.com.invalid> - 2011-08-21 23:58 -0700
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Patricia Shanahan <pats@acm.org> - 2011-08-22 08:37 -0700
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Lew <lewbloch@gmail.com> - 2011-08-22 08:56 -0700
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-08-22 09:15 -0700
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Roedy Green <see_website@mindprod.com.invalid> - 2011-08-22 10:02 -0700
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? markspace <-@.> - 2011-08-22 10:50 -0700
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? Arne Vajhøj <arne@vajhoej.dk> - 2011-08-23 19:03 -0400
Re: Why does Eclipse find error in simple "public static void main( String[] args) { } instruction? markspace <-@.> - 2011-08-22 10:48 -0700
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-22 07:34 -0700
Re: Locale.getDefault bug in JDK 1.7 markspace <-@.> - 2011-08-22 10:51 -0700
Re: Locale.getDefault bug in JDK 1.7 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-08-22 18:18 +0000
Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-22 11:22 -0700
Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-22 12:40 -0700
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 09:04 -0700
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 09:10 -0700
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 08:08 -0700
Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-23 17:22 +0200
Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-23 09:02 -0700
Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-23 22:57 +0200
Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-23 18:03 -0700
Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-24 09:09 +0200
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-25 07:00 -0700
Re: Locale.getDefault bug in JDK 1.7 Lew <lewbloch@gmail.com> - 2011-08-25 09:56 -0700
Re: Locale.getDefault bug in JDK 1.7 supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> - 2011-08-25 15:50 -0400
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-25 12:55 -0700
Re: Locale.getDefault bug in JDK 1.7 Silvio <silvio@moc.com> - 2011-08-27 00:48 +0200
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-25 06:54 -0700
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-08-23 09:43 -0700
Re: Locale.getDefault bug in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-02 08:24 -0700
Re: Locale.getDefault bug in JDK 1.7 Jeff Higgins <jeff@invalid.invalid> - 2011-09-02 11:34 -0400
csiph-web