From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 17 07:46:29 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 404601065672; Tue, 17 Jun 2008 07:46:29 +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 9A6708FC18; Tue, 17 Jun 2008 07:46:28 +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 m5H7k9K8042261; Tue, 17 Jun 2008 11:46:09 +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=1213688770; bh=Psyf28FqEnPu7ey45XKWU4PifLvrdjWqcC9rUTQ 8hEI=; l=548; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=RXYx8uIUsw/GHcrfbx/dEVpfE rnTVt90IH7MbKFqFlql56NOM0W4PMzue7Ro+zLmfC667HkSa23vfe8GepPsScsZny5k tNFXkocCn8y5YRbRhnS8Ku19jxmjxGt1cvzJc664ddxE6yQoJTKbI2Yff9/3uEQZOVf anyfxK+6+hrw= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id m5H7k8V6042260; Tue, 17 Jun 2008 11:46:08 +0400 (MSD) (envelope-from ache) Date: Tue, 17 Jun 2008 11:46:07 +0400 From: Andrey Chernov To: Gabor Kovesdan Message-ID: <20080617074607.GA42047@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: <4854BC29.3060507@FreeBSD.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48576610.9080808@FreeBSD.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Mailman-Approved-At: Tue, 17 Jun 2008 11:14:58 +0000 Cc: Doug Barton , current@FreeBSD.org, Diomidis Spinellis , hackers@FreeBSD.org, K?vesd?n G?bor , Dag-Erling Sm??rgrav , "Sean C. Farley" , Max Khon Subject: Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 07:46:29 -0000 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. -- http://ache.pp.ru/