From owner-freebsd-current@FreeBSD.ORG Tue Jun 17 10:08:41 2008 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9E401065670; Tue, 17 Jun 2008 10:08:41 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 7333F8FC3C; Tue, 17 Jun 2008 10:08:41 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 582562086; Tue, 17 Jun 2008 12:08:39 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Andrey Chernov 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> Date: Tue, 17 Jun 2008 12:08:38 +0200 In-Reply-To: <20080617002224.GA16122@nagual.pp.ru> (Andrey Chernov's message of "Tue\, 17 Jun 2008 04\:22\:25 +0400") Message-ID: <861w2wgyqh.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Doug Barton , current@FreeBSD.org, Diomidis Spinellis , hackers@FreeBSD.org, K?vesd?n G?bor , "Sean C. Farley" , Max Khon Subject: Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 10:08:41 -0000 Andrey Chernov writes: > "Dag-Erling Sm=C3=B8rgrav" writes: > > 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). I hadn't noticed... ISTR it was an issue back when jphoward wrote his BSD-licensed grep. However, it's not the same engine - it's Spencer's old engine with multibyte support added. IIRC, it performs very poorly compared to the GNU regexp engine; it would be interesting to see how well the Tcl engine performs in comparison. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no