GetUserDefaultLocaleName returns a Windows-style locale too.

This commit is contained in:
John Ralls 2019-05-02 11:27:23 -07:00
parent 653d8cb5c3
commit 7c9f01ff3b

View File

@ -791,6 +791,7 @@ set_win32_thread_locale()
sys_locale = g_utf16_to_utf8((gunichar2*)lpLocaleName,
LOCALE_NAME_MAX_LENGTH,
NULL, NULL, NULL);
sys_locale[2] = '_';
setlocale (LC_ALL, sys_locale);
return;
}