Re: locale support?
- Posted by CChris <christian.cuvier at agricul?ure.gouv.?r> May 05, 2008
- 713 views
Jeremy Cowgar wrote: > > Jason Gade wrote: > > > > <a > > href="http://www.cryer.co.uk/brian/windows/info_windows_locale_table.htm">http://www.cryer.co.uk/brian/windows/info_windows_locale_table.htm</a> > > > > So, "en-US" doesn't work for Windows? I was looking around for locale info > > and > > from what I saw it should. > > That's a nice list. en-us, en-US and en_US do not work. English, > English_United > States, English_United States.1252 all work. > > > Also it looks like msvcrt.dll does contain setlocale. > > Yes, I am using that currently for the setlocale implementation on Windows. > > -- > Jeremy Cowgar > <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a> Why not: * convert the list linked above, or the one at http://msdn.microsoft.com/en-us/library/ms776260(VS.85).aspx into two maps, the common key eing the LCID; * Then, when user provides a string for a locale, look it up the appropriate map, chosen by a call to platform(). CChris