mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
kernel32: Fix a compiler warning on Mac OS.
This commit is contained in:
parent
91227d9138
commit
49421014b7
1 changed files with 1 additions and 1 deletions
|
@ -2875,7 +2875,7 @@ void LOCALE_Init(void)
|
||||||
CFStringGetCString( user_locale_string_ref, user_locale, sizeof(user_locale), kCFStringEncodingUTF8 );
|
CFStringGetCString( user_locale_string_ref, user_locale, sizeof(user_locale), kCFStringEncodingUTF8 );
|
||||||
CFRelease( user_locale_ref );
|
CFRelease( user_locale_ref );
|
||||||
/* Strip modifiers because setlocale() can't parse them. */
|
/* Strip modifiers because setlocale() can't parse them. */
|
||||||
if (p = strchr( user_locale, '@' )) *p = 0;
|
if ((p = strchr( user_locale, '@' ))) *p = 0;
|
||||||
if (!strchr( user_locale, '.' )) strcat( user_locale, ".UTF-8" );
|
if (!strchr( user_locale, '.' )) strcat( user_locale, ".UTF-8" );
|
||||||
unix_cp = CP_UTF8; /* default to utf-8 even if we don't get a valid locale */
|
unix_cp = CP_UTF8; /* default to utf-8 even if we don't get a valid locale */
|
||||||
setenv( "LANG", user_locale, 0 );
|
setenv( "LANG", user_locale, 0 );
|
||||||
|
|
Loading…
Reference in a new issue