mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
GetUserDefaultLocaleName returns a Windows-style locale too.
This commit is contained in:
parent
653d8cb5c3
commit
7c9f01ff3b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user