diff options
Diffstat (limited to 'lib/libc/locale/gb18030.c')
-rw-r--r-- | lib/libc/locale/gb18030.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/locale/gb18030.c b/lib/libc/locale/gb18030.c index 3e43179..1457d3e 100644 --- a/lib/libc/locale/gb18030.c +++ b/lib/libc/locale/gb18030.c @@ -39,6 +39,8 @@ __FBSDID("$FreeBSD$"); #include <wchar.h> #include "mblocal.h" +extern int __mb_sb_limit; + static size_t _GB18030_mbrtowc(wchar_t * __restrict, const char * __restrict, size_t, mbstate_t * __restrict); static int _GB18030_mbsinit(const mbstate_t *); @@ -59,6 +61,7 @@ _GB18030_init(_RuneLocale *rl) __mbsinit = _GB18030_mbsinit; _CurrentRuneLocale = rl; __mb_cur_max = 4; + __mb_sb_limit = 128; return (0); } |