ntdll: Fix locale detection on Mac.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
84d6845412
commit
ae73f35d53
|
@ -1085,7 +1085,7 @@ static void init_locale(void)
|
|||
CFStringRef locale_string;
|
||||
|
||||
if (country)
|
||||
locale_string = CFStringCreateWithFormat(NULL, NULL, CFSTR("%@_%@"), lang, country);
|
||||
locale_string = CFStringCreateWithFormat(NULL, NULL, CFSTR("%@-%@"), lang, country);
|
||||
else
|
||||
locale_string = CFStringCreateCopy(NULL, lang);
|
||||
|
||||
|
@ -1114,7 +1114,7 @@ static void init_locale(void)
|
|||
country = CFLocaleGetValue( locale, kCFLocaleCountryCode );
|
||||
}
|
||||
if (country)
|
||||
locale_string = CFStringCreateWithFormat( NULL, NULL, CFSTR("%@_%@"), lang, country );
|
||||
locale_string = CFStringCreateWithFormat( NULL, NULL, CFSTR("%@-%@"), lang, country );
|
||||
else
|
||||
locale_string = CFStringCreateCopy( NULL, lang );
|
||||
CFStringGetCString( locale_string, user_locale, sizeof(user_locale), kCFStringEncodingUTF8 );
|
||||
|
|
Loading…
Reference in New Issue