Date: Wed, 18 Jun 2008 16:08:22 -0500 (CDT) From: "Sean C. Farley" <scf@FreeBSD.org> To: =?ISO-8859-15?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no> Cc: Doug Barton <dougb@FreeBSD.org>, current@FreeBSD.org, Andrey Chernov <ache@nagual.pp.ru>, Diomidis Spinellis <dds@aueb.gr>, hackers@FreeBSD.org, K?vesd?n G?bor <gabor@t-hosting.hu>, Max Khon <fjoe@samodelkin.net> Subject: Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo] Message-ID: <alpine.BSF.1.10.0806181543320.70949@thor.farley.org> In-Reply-To: <86bq211rqw.fsf@ds4.des.no> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --56599777-1701218234-1213823305=:70949 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 16 Jun 2008, Dag-Erling Smørgrav wrote: > Doug Barton <dougb@FreeBSD.org> writes: >> Andrey Chernov <ache@nagual.pp.ru> writes: >>> 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. Other BSD-license-friendly regex libraries: 1. PCRE (http://www.pcre.org/) (has a POSIX compliant interface too) 2. Oniguruma (http://www.geocities.jp/kosako3/oniguruma/) (from Ruby) 3. Lrexlib (http://lrexlib.luaforge.net/) (no apparent POSIX interface) Sean -- scf@FreeBSD.org --56599777-1701218234-1213823305=:70949--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0806181543320.70949>