Manager/client, Win: use LOCALE_USER_DEFAULT instead of NULL in locale call

This commit is contained in:
David Anderson 2015-09-18 11:15:36 -07:00
parent 0eeb05a894
commit fcb359d2ee
1 changed files with 2 additions and 2 deletions

View File

@ -763,9 +763,9 @@ static void get_format_chars() {
if (nfc.thousands_sep) return;
#ifdef _WIN32
char buf[256];
GetLocaleInfoA(NULL, LOCALE_STHOUSAND, buf, sizeof(buf));
GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, buf, sizeof(buf));
nfc.thousands_sep = buf[0];
GetLocaleInfoA(NULL, LOCALE_SDECIMAL, buf, sizeof(buf));
GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buf, sizeof(buf));
nfc.decimal_point = buf[0];
#else
struct lconv *lcp = localeconv();