Date: Mon, 4 Apr 2016 02:43:36 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297532 - head/lib/libc/locale Message-ID: <201604040243.u342haaD077861@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604040243.u342haaD077861>