From owner-svn-src-all@freebsd.org Mon Apr 4 02:43:37 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0768EB0240C; Mon, 4 Apr 2016 02:43:37 +0000 (UTC) (envelope-from ache@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CC8B91CDA; Mon, 4 Apr 2016 02:43:36 +0000 (UTC) (envelope-from ache@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u342haD0077862; Mon, 4 Apr 2016 02:43:36 GMT (envelope-from ache@FreeBSD.org) Received: (from ache@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u342haaD077861; Mon, 4 Apr 2016 02:43:36 GMT (envelope-from ache@FreeBSD.org) Message-Id: <201604040243.u342haaD077861@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ache set sender to ache@FreeBSD.org using -f From: "Andrey A. Chernov" Date: Mon, 4 Apr 2016 02:43:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297532 - head/lib/libc/locale X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2016 02:43:37 -0000 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); }