mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-3125 use NULL as value in setlocale() to just query
X-SVN-Rev: 14053
This commit is contained in:
parent
43f2b2ae40
commit
f9db1243eb
1 changed files with 1 additions and 1 deletions
|
@ -1897,7 +1897,7 @@ uprv_getDefaultCodepage()
|
|||
{
|
||||
uprv_memset(codesetName, 0, sizeof(codesetName));
|
||||
}
|
||||
localeName = setlocale(LC_CTYPE, "");
|
||||
localeName = setlocale(LC_CTYPE, NULL);
|
||||
if (localeName != NULL && (name = (uprv_strchr(localeName, (int)'.'))) != NULL)
|
||||
{
|
||||
/* strip the locale name and look at the suffix only */
|
||||
|
|
Loading…
Add table
Reference in a new issue