Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2008 04:28:10 +0400
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        Dag-Erling Sm??rgrav <des@des.no>, Doug Barton <dougb@FreeBSD.org>, K?vesd?n G?bor <gabor@t-hosting.hu>, Diomidis Spinellis <dds@aueb.gr>,  hackers@FreeBSD.org, current@FreeBSD.org, "Sean C. Farley" <scf@FreeBSD.org>, Max Khon <fjoe@samodelkin.net>
Subject:   Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]
Message-ID:  <20080617002808.GB16122@nagual.pp.ru>
In-Reply-To: <20080617002224.GA16122@nagual.pp.ru>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080617002808.GB16122>