ICU-3125 use NULL as value in setlocale() to just query
X-SVN-Rev: 14053
This commit is contained in:
parent
43f2b2ae40
commit
f9db1243eb
@ -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…
Reference in New Issue
Block a user