Re: locale support?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu