Add comment explaining __mb_sb_limit trick here.

This commit is contained in:
Andrey A. Chernov 2007-10-15 09:51:30 +00:00
parent 0189c6c54a
commit 4932c895e7

View File

@ -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);