Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrieve the System Locale on WinXP or Win2003

jyothsna loka
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam using English locale for standards and formats on Reginal options tab tab and system locale as polish on "Language for non-unicode programs on Advanced tab of Win 2003 machine.

I have to retrieve a value using JVM , according to the system locale which is on advanced tab of win2003 or win XP.

For that Iam using java function "getNumberInstance" which will retrieve the default locale.But this uses the user locale on Regional options tab,
But I want to usse the System locale whcih is on Advanced tab.

NumberFormat numFmt =NumberFormat.getNumberInstance();

How to retrieve the locale selected on advanced tab (language for non unicode programs)

It will be a great help . Pls suggest your solutions.

Thanks in Advance,
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic