kernel32: Mac lang. pref. overrides LANG, but not LC_ALL or LC_MESSAGES.

This commit is contained in:
Ken Thomases 2009-12-09 15:03:07 -06:00 committed by Alexandre Julliard
parent 21acb71e42
commit b58cd975ba

View File

@ -2971,7 +2971,7 @@ void LOCALE_Init(void)
#ifdef __APPLE__
/* Override lcid_LC_MESSAGES with user_language if LC_MESSAGES is set to default */
if (lcid_LC_MESSAGES == lcid_LC_CTYPE && user_language_string_ref)
if (user_language_string_ref && !getenv("LC_ALL") && !getenv("LC_MESSAGES"))
{
struct locale_name locale_name;
WCHAR buffer[128];