Treat empty encoding as "C" encoding

This commit is contained in:
ache 1995-10-23 20:20:11 +00:00
parent 2e80372b01
commit 94f34a1cd5

View File

@ -77,7 +77,7 @@ _xpg4_setrunelocale(encoding)
/*
* The "C" and "POSIX" locale are always here.
*/
if (!strcmp(encoding, "C") || !strcmp(encoding, "POSIX")) {
if (!*encoding || !strcmp(encoding, "C") || !strcmp(encoding, "POSIX")) {
_CurrentRuneLocale = &_DefaultRuneLocale;
return(0);
}