Re: How to set GTK/App locale in Windows?



Dana utorak 6. januar 2004. 21:45, Tor Lillqvist je napisao/la:
GTK on Windows looks at the environment variables LC_ALL, LC_CTYPE and
LANG (even if the Microsoft C runtime doesn't use these at all). So
would it be possible for you to use one of those? You could set the
env var in your code, calling putenv("LANG=de_DE") before calling
gtk_init() should work.

That was that! It is working as it should.

Note that this won't affect the locale used by the C runtime. As you
call gtk_disable_setlocale(), GTK will not call setlocale(LC_ALL, ""),
and thus the C runtime's locale will stay as "C", methinks.

I am having GUI only application, so it is not a problem.
Thank you for quick solution.

Bye,
Goran




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