Reset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte one

This commit is contained in:
Andrey A. Chernov 2002-08-07 20:49:25 +00:00
parent 45206d5c69
commit 57473ad215

View File

@ -73,6 +73,7 @@ setrunelocale(encoding)
*/
if (!strcmp(encoding, "C") || !strcmp(encoding, "POSIX")) {
_CurrentRuneLocale = &_DefaultRuneLocale;
__mb_cur_max = 1;
return (0);
}