bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

does setlocale work fine in Win32?


From: Kausilas, Leonardo
Subject: does setlocale work fine in Win32?
Date: Wed, 11 Feb 2004 18:28:32 -0300

> Hi,
> 
>       I'm working with GetText on Windows and I'm needing to do a call to
> "setlocale" from my main program in order to set the locale from where the
> messages' catalog is loaded. I need to distinguish different variant of
> each languaje (ex. address@hidden), and setting the "ThreadLocale" in Win32
> fashion is not enough, it should be in a Unix fashion. To do this, instead
> of doing a "setlocale" or "SetThreadLocale", I'm trying to set the LANG
> environment variable to the corresponding locale. 
>       If I do this from the Operating System, it works ok. But if I do it
> from inside the executable with the "intl.dll" implicity linked it doesn't
> work because it seems the a Windows DLL has its own copy of the
> environment (if the DLL is loaded with LoadLibrary after setting the
> environment variable, it works alright). 
>       What is the correct way to set the locale from inside the
> application in Windows?
> 
>       Thanks a lot,
> 
> Leonardo Kausilas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]