From owner-freebsd-i18n@FreeBSD.ORG Mon Sep 17 08:56:39 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 70E2E16A417 for ; Mon, 17 Sep 2007 08:56:39 +0000 (UTC) (envelope-from petr.hroudny@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 0213B13C458 for ; Mon, 17 Sep 2007 08:56:38 +0000 (UTC) (envelope-from petr.hroudny@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1073432nfb for ; Mon, 17 Sep 2007 01:56:38 -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=DY9qk1mrQzFSVme1UmL3SYzjxsNz/ddmqKQVCmrMEss=; b=VJbCVJgXvJvBy9eIBcob8ESz+HuSlqaf+XKdUFaS+eALWYyF3Ma8/QubeRV2o3IenwY4RrWirA7SmjYUGRpaojRGsWvYUqukEpO4iHe54Iy6FARt2rbe+21PF1dP11yWUYI9PgkpYzf3LyEUEtPPbk1HE0lg8+9jkiXS66HSwkM= 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=p9iT8CMYN0OSiIE5lUo+LvmN+xjlrzAOuwCRvnf8bpmduuSUlgfvhE8FBmm4+8jZH38fdHQPY/7m+h+fasq8CU5kAdVWSFkcVU/Or88yt0S8dME9r67S2jZ/7TAKwyEUB6BTrh2f0nlWU24qd0yVKvGOgJU31/33YSIXVYyhv70= Received: by 10.78.186.9 with SMTP id j9mr2425142huf.1190017761621; Mon, 17 Sep 2007 01:29:21 -0700 (PDT) Received: by 10.78.100.2 with HTTP; Mon, 17 Sep 2007 01:29:21 -0700 (PDT) Message-ID: Date: Mon, 17 Sep 2007 10:29:21 +0200 From: "=?UTF-8?Q?Petr_Hroudn=C3=BD?=" To: "Andrey Chernov" , current@freebsd.org, i18n@freebsd.org, perky@freebsd.org, petr.hroudny@gmail.com In-Reply-To: <20070916192924.GA12678@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> 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: Mon, 17 Sep 2007 08:56:39 -0000 2007/9/16, Andrey Chernov : > The problem is: currently our single byte ctype functions are broken for > wide characters locales in the argument range >= 0x80 - they may return > false positives. > > For example, for UTF-8 locale we currently have: > iswspace(0xA0)==1 and isspace(0xA0)==1 > (because iswspace() and isspace() are the same code) > but must have > isspace(0xA0)==0 This is exactly what happens on other OSes and I agree this is the right behaviour for UTF-8. However, we must ensure, that: for C locale: isspace(0xA0)==0 for ISO8859-* locales: isspace(0xA0)==1 for UTF-8 locales: isspace(0xA0)==0 Regards, Petr.