From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 17 00:28:30 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 F152210656AE; Tue, 17 Jun 2008 00:28: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 4BB738FC18; Tue, 17 Jun 2008 00:28:29 +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 m5H0SBmS016257; Tue, 17 Jun 2008 04:28:11 +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=1213662491; bh=T2MyJb86+Q+WvBouyq96wpARPkvsla3aTsdo7Ly OeDU=; l=1246; h=Date:From:To:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=A9AySwPqHBtczH96CiQLwFOt2 90tn06obhENeYXeMJy+DjwSEqdVmvY4B/IjK3g6qBnVITFD5wbEnaSIHTH+LrwGgfdZ riCis9OodbYhmRp7yAo1JZFD0hnQIWGK5vTHf8/riYxUpnch/92qDMoHJywWM30+3SS WADLKw9tFTiI= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id m5H0SB8R016255; Tue, 17 Jun 2008 04:28:11 +0400 (MSD) (envelope-from ache) Date: Tue, 17 Jun 2008 04:28:10 +0400 From: Andrey Chernov To: 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: <20080617002808.GB16122@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , 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: <485453F2.60507@FreeBSD.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080617002224.GA16122@nagual.pp.ru> User-Agent: Mutt/1.5.18 (2008-05-17) X-Mailman-Approved-At: Tue, 17 Jun 2008 01:59:33 +0000 Cc: 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 00:28:30 -0000 On Tue, Jun 17, 2008 at 04:22:25AM +0400, Andrey Chernov wrote: > On Mon, Jun 16, 2008 at 02:36:23PM +0200, Dag-Erling Sm??rgrav wrote: > > > > Please note that BSD grep is not localized (and can't be per design) > > > > and works only with standard C locale. It may not affect ports > > > > system processing but shurely affects real texts handling. > > > That is very troubling. In this day and age localization is a > > > requirement. I cannot imagine being supportive of adding something to > > > the base that does not have this capability. > > > > We don't have a locale-aware regex implementation. Henry Spencer wrote > > one for Tcl 8, and it seems to be under an MIT-equivalent license, but > > I'm not sure how hard it would be to extirpate. It might be easier to > > lift it from PostgreSQL, which also uses it. > > No, we have it already for many years (libc/regexec). > BSD grep problem is different one, they use upper half of 256 char table > on their own. Oops, sorry I am thinking about BSD _sort_ when writing last statement. BSD grep is even not bothering to call setlocale(). I can't say is it can be simple healed by adding that call, some test suite run is needed. -- http://ache.pp.ru/