ICU-3125 use NULL as value in setlocale() to just query

X-SVN-Rev: 14053
This commit is contained in:
Markus Scherer 2003-12-09 17:40:46 +00:00
parent 43f2b2ae40
commit f9db1243eb

View File

@ -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 */