Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

From: Sean C. Farley <scf_at_FreeBSD.org>
Date: Wed, 18 Jun 2008 16:08:22 -0500 (CDT)
On Mon, 16 Jun 2008, Dag-Erling Smørgrav wrote:

> Doug Barton <dougb_at_FreeBSD.org> writes:
>> Andrey Chernov <ache_at_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_at_FreeBSD.org
Received on Wed Jun 18 2008 - 19:46:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC