Skip to content

Commit

Permalink
GetUserDefaultLocaleName returns a Windows-style locale too.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed May 2, 2019
1 parent 653d8cb commit 7c9f01f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnucash/gnucash-bin.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c9f01f

Please sign in to comment.