diff options
author | ache <ache@FreeBSD.org> | 2002-08-07 20:49:25 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-08-07 20:49:25 +0000 |
commit | f158c10436c358bac41e5759a511e11ec18847d7 (patch) | |
tree | b2258b617a009283d4c3469f3212d5c62fde2ea9 /lib | |
parent | 1994aec49dba4f338656562d8d256c8cab68a59e (diff) | |
download | FreeBSD-src-f158c10436c358bac41e5759a511e11ec18847d7.zip FreeBSD-src-f158c10436c358bac41e5759a511e11ec18847d7.tar.gz |
Reset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte one
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/setrunelocale.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index a42c020..11d97bd 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -73,6 +73,7 @@ setrunelocale(encoding) */ if (!strcmp(encoding, "C") || !strcmp(encoding, "POSIX")) { _CurrentRuneLocale = &_DefaultRuneLocale; + __mb_cur_max = 1; return (0); } |