Especially thank Tor for spending time to explain this. It is very instructive!
And thank you all for the help.
Both putenv() and g_setenv() work. :-)
- Original Message
From: Tor Lillqvist <[EMAIL PROTECTED]>
To: Marvin Zhang <[EMAIL PROTECTED]>
Cc: Daniel Atallah <[
I set but it still doesn't work.
int main(int argc, char *argv[])
{
...
SetEnvironmentVariable("LANG", "zh_CN");
SetEnvironmentVariable("LC_ALL", "zh_CN");
gtk_init(&argc, &argv);
...
}
- Original Message ----
From
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");
None of them works.
Any help will be appreciated.
Best regards