Fix for win32 current_language(). Environment variable in 'langstr' parsing

code changed from LANG->LANGUAGE but not code in current_language().
This commit is contained in:
John Popplewell 2004-09-18 01:02:44 +00:00
parent d0edcec0a7
commit 2a9f5553a4

View file

@ -11181,13 +11181,13 @@ int current_language(void)
loc = getenv("LANG");
}
#else
loc = getenv("LANG");
loc = getenv("LANGUAGE");
if (!loc)
{
loc = g_win32_getlocale();
if (loc)
{
snprintf(str, sizeof(str), "LANG=%s", loc);
snprintf(str, sizeof(str), "LANGUAGE=%s", loc);
putenv(str);
}
}