Re: How to set locale dynamicly under GTK-win application?



On Mon, May 12, 2008 at 8:50 PM, Marvin Zhang <marvin2yuer yahoo com> wrote:
There is a method to change the locale by setting the environment LC_ALL in windows (2000 or XP). But how 
to change the locale in the application?
 I tried
 1. setlocale(LC_ALL, "zh_CN");
 2. SetEnvironmentVariable("LC_ALL", "zh_CN");

Setting the "LANG" environment variable before calling gtk_init() should do it.

-D



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