From owner-freebsd-current@FreeBSD.ORG Tue Jun 17 07:48:25 2008 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 C27111065672; Tue, 17 Jun 2008 07:48:25 +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 100CD8FC14; Tue, 17 Jun 2008 07:48:24 +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.2/8.14.2) with ESMTP id m5H7mM6j042320; Tue, 17 Jun 2008 11:48:22 +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=1213688902; bh=Db7cG5s/+dIAiaSNxOJBEVZD76w/eQh1GUm/u5V Z+m4=; l=717; h=Date:From:To:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=XPbgQii80JyH4mXN9wQFnt2zA TbdGkXhPt6rHNTJqwJdZGT6z/skh3qSLCMZo+djZr0ze0jeRtLhhTqc08Ulv1Zc9RcW af7bAvEpqSalKnKuu+75UxxPsZS5FodPDVVI3UJHO7Hh0ARvnYBtVQwYnYGKy43bNs0 wUZk076hFPv8= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id m5H7mMwN042319; Tue, 17 Jun 2008 11:48:22 +0400 (MSD) (envelope-from ache) Date: Tue, 17 Jun 2008 11:48:21 +0400 From: Andrey Chernov To: Gabor Kovesdan , Dag-Erling Sm??rgrav , Doug Barton , K?vesd?n G?bor , Diomidis Spinellis , hackers@FreeBSD.org, current@FreeBSD.org, "Sean C. Farley" , Max Khon Message-ID: <20080617074821.GB42047@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Gabor Kovesdan , Dag-Erling Sm??rgrav , Doug Barton , K?vesd?n G?bor , Diomidis Spinellis , hackers@FreeBSD.org, current@FreeBSD.org, "Sean C. Farley" , Max Khon References: <4854C96A.1080603@aueb.gr> <48556AAD.9010602@t-hosting.hu> <20080615212613.GA97326@nagual.pp.ru> <4855EDFE.3010708@FreeBSD.org> <86bq211rqw.fsf@ds4.des.no> <20080617002224.GA16122@nagual.pp.ru> <20080617002808.GB16122@nagual.pp.ru> <20080617004647.GA16546@nagual.pp.ru> <48576610.9080808@FreeBSD.org> <20080617074607.GA42047@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080617074607.GA42047@nagual.pp.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo] 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: Tue, 17 Jun 2008 07:48:25 -0000 On Tue, Jun 17, 2008 at 11:46:07AM +0400, Andrey Chernov wrote: > On Tue, Jun 17, 2008 at 09:21:52AM +0200, Gabor Kovesdan wrote: > > Sorry for the possibly silly question, but what we mean localization > > here in the case of grep? As far as I see, it works with wide chars, > > because the regex library is aware of those. What other aspect needs to > > be taken into account? > > See how word boundary handled in util.c there for example. They treat > buffer as single chars only. wctype should be used instead ctype in all > places in the code with corresponding mbrtowc conversion. Moreover, ignore case matching there is single byte only too and needs the same. -- http://ache.pp.ru/