Re: How to set GTK/App locale in Windows?
- From: Goran RakiÄ <gox devbase net>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to set GTK/App locale in Windows?
- Date: Wed, 7 Jan 2004 00:13:38 +0100
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]