diff options
author | ache <ache@FreeBSD.org> | 2007-10-15 09:51:30 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2007-10-15 09:51:30 +0000 |
commit | c44dc0d6393702c6bcf74f9504921665918da2b9 (patch) | |
tree | b7da64b5e7d62f25b2fe996113e503c586584bb3 /lib/libc | |
parent | 725d6c21cb490a86ba287d505ca73207a32d8de8 (diff) | |
download | FreeBSD-src-c44dc0d6393702c6bcf74f9504921665918da2b9.zip FreeBSD-src-c44dc0d6393702c6bcf74f9504921665918da2b9.tar.gz |
Add comment explaining __mb_sb_limit trick here.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/utf8.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/locale/utf8.c b/lib/libc/locale/utf8.c index 086a1e4..0ccadd3 100644 --- a/lib/libc/locale/utf8.c +++ b/lib/libc/locale/utf8.c @@ -65,6 +65,11 @@ _UTF8_init(_RuneLocale *rl) __wcsnrtombs = _UTF8_wcsnrtombs; _CurrentRuneLocale = rl; __mb_cur_max = 6; + /* + * UCS-4 encoding used as the internal representation, so + * slots 0x0080-0x00FF are occuped and must be excluded + * from the single byte ctype by setting the limit. + */ __mb_sb_limit = 128; return (0); |