mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
Treat empty encoding as "C" encoding
This commit is contained in:
parent
377da8e867
commit
34d08e870e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11737
@ -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