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:
parent
d0edcec0a7
commit
2a9f5553a4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue