gnucash maint: GetUserDefaultLocaleName returns a Windows-style locale too.
John Ralls
jralls at code.gnucash.org
Thu May 2 14:27:34 EDT 2019
Updated via https://github.com/Gnucash/gnucash/commit/7c9f01ff (commit)
from https://github.com/Gnucash/gnucash/commit/653d8cb5 (commit)
commit 7c9f01ff3bca7f7c4b506dcd19413298eedd99da
Author: John Ralls <jralls at ceridwen.us>
Date: Thu May 2 11:27:23 2019 -0700
GetUserDefaultLocaleName returns a Windows-style locale too.
diff --git a/gnucash/gnucash-bin.c b/gnucash/gnucash-bin.c
index 757c24f86..c6bc3bd53 100644
--- a/gnucash/gnucash-bin.c
+++ b/gnucash/gnucash-bin.c
@@ -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;
}
Summary of changes:
gnucash/gnucash-bin.c | 1 +
1 file changed, 1 insertion(+)
More information about the gnucash-changes
mailing list