Reset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte one
This commit is contained in:
parent
45206d5c69
commit
57473ad215
@ -73,6 +73,7 @@ setrunelocale(encoding)
|
||||
*/
|
||||
if (!strcmp(encoding, "C") || !strcmp(encoding, "POSIX")) {
|
||||
_CurrentRuneLocale = &_DefaultRuneLocale;
|
||||
__mb_cur_max = 1;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user