From owner-freebsd-current@FreeBSD.ORG Mon Sep 17 17:16:37 2007 Return-Path: Delivered-To: current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EEC116A417; Mon, 17 Sep 2007 17:16:37 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 0E43413C4A6; Mon, 17 Sep 2007 17:16:36 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id l8HHGZXW031324; Mon, 17 Sep 2007 21:16:35 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1190049395; bh=iQfeje9qqF9lbolnz9WqglI0kxZFvHAVG/cL99q 34hg=; l=584; h=Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent; b=Oz4ClMR4KQGKp8VsvHt6oWON8XlC1myBw0ZDcdXA DCj8z7Fg1BYFZ6tmf2zbw9dYwaNxSXm6xhvm6VPQQKFeKziNfg9/XniR5Vfv1ysTYq2 Ti9snEedii45dytDbDA3VwuMNNvpl3sYmAx+Sh4luxGNBNcurgpV8fMAAnkbnk1Q= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l8HHGXFn031323; Mon, 17 Sep 2007 21:16:34 +0400 (MSD) (envelope-from ache) Date: Mon, 17 Sep 2007 21:16:33 +0400 From: Andrey Chernov To: "YAMAMOTO, Taku" Message-ID: <20070917171633.GA31179@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , "YAMAMOTO, Taku" , current@FreeBSD.ORG, i18n@FreeBSD.ORG, Petr Hroudn?? , perky@FreeBSD.ORG References: <20070916192924.GA12678@nagual.pp.ru> <20070917092130.GA24424@nagual.pp.ru> <20070918020100.d43beb0b.taku@tackymt.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070918020100.d43beb0b.taku@tackymt.homeip.net> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Petr Hroudn?? , current@FreeBSD.ORG, perky@FreeBSD.ORG, i18n@FreeBSD.ORG Subject: Re: Ctype patch for review X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2007 17:16:37 -0000 On Tue, Sep 18, 2007 at 02:01:00AM +0900, YAMAMOTO, Taku wrote: > Checking for __mb_cur_max is not enough for certain locales. > For example, SJIS has following range for JIS X0201 (a.k.a. HALFWIDTH KANA). > > /* > * JIS X201 > */ > PUNCT 0xa1-0xa5 > SPACE 0xa0 > BLANK 0xa0 > SPECIAL 0xa1-0xdf > PHONOGRAM 0xa6-0xdf > SWIDTH1 0xa0-0xdf I don't understand your remark. MSKanji have __mb_cur_max = 2 and so those ranges are wchar_t ranges. My patch restrict unsigned char ranges only. -- http://ache.pp.ru/