Treat empty encoding as "C" encoding
This commit is contained in:
parent
83a985d5f2
commit
e9ce2479b9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user