From owner-freebsd-i18n@FreeBSD.ORG Fri Sep 21 07:04:46 2007 Return-Path: Delivered-To: i18n@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E7CE16A41A for ; Fri, 21 Sep 2007 07:04:46 +0000 (UTC) (envelope-from petr.hroudny@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id DD54813C467 for ; Fri, 21 Sep 2007 07:04:45 +0000 (UTC) (envelope-from petr.hroudny@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so644236nfb for ; Fri, 21 Sep 2007 00:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=qVuhfMNZ8bSrnDuI4F+m8Cm5GSUHhg/DW31XlJP/1/I=; b=lBwQczuPo5wz0ThUQHNmjpEHI1GN7vUJ/yHe9ssWFUraYyhEHBgsUvmOaBg/tQ8Mvr1XDm9BZwUkpvb0CWMR4NSLwZJwzDBPvFbNYvPV9/BbzamHeKJ2UnxoQhtudglv3KjYIWSEzzLGXas+Z0p73GVKkygdYmORfKaLf0h1UNk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=opKZmOSxaAYAENdNXIhPn9Wde/0ZXaJIODflaGXEq50M75Xkw8QD263lonbLuLwA8dpz2P2khnXKOxea9qd+mfLyrbqbzUCrcntgm0erLL+TFy5W+3trrZiqjYmpQ6L7t9v2tsMqO25h3jZT0vBTlZT/xSPWpBOBPNZH8YJa3qY= Received: by 10.78.170.6 with SMTP id s6mr1762014hue.1190358284294; Fri, 21 Sep 2007 00:04:44 -0700 (PDT) Received: by 10.78.100.2 with HTTP; Fri, 21 Sep 2007 00:04:44 -0700 (PDT) Message-ID: Date: Fri, 21 Sep 2007 09:04:44 +0200 From: "=?UTF-8?Q?Petr_Hroudn=C3=BD?=" To: "Andrey Chernov" , "Taku YAMAMOTO" , "Petr Hroudn??" , current@freebsd.org, perky@freebsd.org, i18n@freebsd.org In-Reply-To: <20070921024107.GA21223@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070916192924.GA12678@nagual.pp.ru> <20070917092130.GA24424@nagual.pp.ru> <20070918020100.d43beb0b.taku@tackymt.homeip.net> <20070917171633.GA31179@nagual.pp.ru> <20070919111207.f37653fc.taku@tackymt.homeip.net> <20070919022555.GA70617@nagual.pp.ru> <20070919023625.GA70891@nagual.pp.ru> <20070919051830.GA72429@nagual.pp.ru> <20070919121024.GA81606@nagual.pp.ru> <20070921024107.GA21223@nagual.pp.ru> Cc: Subject: Re: Ctype patch for review X-BeenThere: freebsd-i18n@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Internationalization Effort List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 07:04:46 -0000 2007/9/21, Andrey Chernov : > On Wed, Sep 19, 2007 at 04:10:24PM +0400, Andrey Chernov wrote: > > Improved vesrsion. Intoduce general __mb_sch_limit parameter instead for > > all locales specifying upper limit of single char range. It allows also > > fix the bug when ctype(3) functions called with arg > 0xFF for wide > > character locales and simplifies all checks. New patch is attached. Here > > is updated rationale again: > > Next improved version, now optimized for speed. I decide to remove extra > _CTYPE_WID flag and duplicate needed functions instead. I believe your patch needs some adjustments for CJK charsets. You are setting __mb_sch_limit to 256 for all multibyte locales except UTF-8, but I believe it should be 128 also for Big5, GB18030, GBK. Regards, Petr