Do not take into account LC_CTYPE and LC_MESSAGES while detecting a user locale
Dmitry Timoshkov
dmitry at baikal.ru
Sat Mar 6 23:59:01 CST 2004
Hello,
According to a user bug report, LC_MESSAGES should affect only
application's interface, but not its locale settings. Glibc while
setting its internal locale checks only LC_ALL and LANG variables.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Do not take into account LC_CTYPE and LC_MESSAGES while detecting
a user locale.
--- cvs/hq/wine/dlls/kernel/locale.c Wed Feb 25 01:54:08 2004
+++ wine/dlls/kernel/locale.c Sat Mar 06 11:32:06 2004
@@ -471,9 +471,7 @@ static LCID init_default_lcid( UINT *uni
LCID ret = 0;
if ((lang = getenv( "LC_ALL" )) ||
- (lang = getenv( "LC_CTYPE" )) ||
(lang = getenv( "LANGUAGE" )) ||
- (lang = getenv( "LC_MESSAGES" )) ||
(lang = getenv( "LANG" )))
{
if (!strcmp(lang,"POSIX") || !strcmp(lang,"C")) goto done;
More information about the wine-patches
mailing list