Reset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte one
This commit is contained in:
parent
1994aec49d
commit
f158c10436
@ -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