svn commit: r297532 - head/lib/libc/locale
Andrey A. Chernov
ache at FreeBSD.org
Mon Apr 4 02:43:37 UTC 2016
Author: ache
Date: Mon Apr 4 02:43:35 2016
New Revision: 297532
URL: https://svnweb.freebsd.org/changeset/base/297532
Log:
EUC-type encodings don't have single byte characters >= 128
This change should not be MFCed until new collate will be
MFCed first, because our old EUC tables have some hacks for
missing codesets.
Modified:
head/lib/libc/locale/euc.c
Modified: head/lib/libc/locale/euc.c
==============================================================================
--- head/lib/libc/locale/euc.c Sun Apr 3 23:39:58 2016 (r297531)
+++ head/lib/libc/locale/euc.c Mon Apr 4 02:43:35 2016 (r297532)
@@ -132,7 +132,7 @@ _EUC_CN_init(struct xlocale_ctype *l, _R
l->runes = rl;
l->__mb_cur_max = 4;
- l->__mb_sb_limit = 256;
+ l->__mb_sb_limit = 128;
return (0);
}
@@ -226,7 +226,7 @@ _EUC_JP_init(struct xlocale_ctype *l, _R
l->runes = rl;
l->__mb_cur_max = 3;
- l->__mb_sb_limit = 196;
+ l->__mb_sb_limit = 128;
return (0);
}
@@ -273,7 +273,7 @@ _EUC_TW_init(struct xlocale_ctype *l, _R
l->runes = rl;
l->__mb_cur_max = 4;
- l->__mb_sb_limit = 256;
+ l->__mb_sb_limit = 128;
return (0);
}
More information about the svn-src-head
mailing list