From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 17 00:22:47 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 934B7106566B; Tue, 17 Jun 2008 00:22:47 +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 E1A8D8FC14; Tue, 17 Jun 2008 00:22:46 +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 m5H0MSQh016176; Tue, 17 Jun 2008 04:22:28 +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=1213662148; bh=iNwAo5NYW2Ed1LD4FbMXiBQlaeLlIH0PfMly82g 6MBI=; l=924; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=EpMfDomP3Nhxdyk/4rsIAfhw0 TAovD3A8ADjAWaXmAp/e1DyAvaozgGwerScCPbSfe1hYG+Q/C/wOXvVUrlxR0GpxDc9 kkZnW4dPAcaTGLaWXIgJtuaSdkialHn9MrVSuIGc1kTqrQtgURz1nBA5QHlytZnpfRX 76ikG/X5Vh1Y= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id m5H0MR9x016175; Tue, 17 Jun 2008 04:22:27 +0400 (MSD) (envelope-from ache) Date: Tue, 17 Jun 2008 04:22:25 +0400 From: Andrey Chernov To: Dag-Erling Sm??rgrav Message-ID: <20080617002224.GA16122@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86bq211rqw.fsf@ds4.des.no> User-Agent: Mutt/1.5.18 (2008-05-17) X-Mailman-Approved-At: Tue, 17 Jun 2008 01:59:24 +0000 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-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:22:47 -0000 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. -- http://ache.pp.ru/