Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wrong Default Locale in Windows XP  RSS feed

 
Qi Liang
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I installed J2SDK 1.4 in the windows with the locale "Chinese", and got the default locale, which is "Chinese". When I changed the OS locale to "Greece" and rebooted, "Greece" is returned with Locale.getLocale() in windows 2000. But "Chinese" is returned with Locale.getLocale() in windows XP.

I deduced that JVM must have got the wrong default locale from windows. Do you touch the part that JVM get system locale?

Thanks

Cliff Liang
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!