From owner-freebsd-current@FreeBSD.ORG Tue Jun 17 00:47:08 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 52BA11065678; Tue, 17 Jun 2008 00:47:08 +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 BA3108FC12; Tue, 17 Jun 2008 00:47:07 +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 m5H0knNQ016600; Tue, 17 Jun 2008 04:46:49 +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=1213663609; bh=KqptdnJQ0y7zM7/7WS8z/6f6SNwGy+SkW1zZ60X M1vw=; l=475; h=Date:From:To:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=TcbbhtHBhACUUqi3XSNbu2UkZ OoQVWSjAyvyAOBsg+P7wl8w9/jgJ9h3jt1Epq+p94GwJXhsPYjmRyVvAqnu1iYvVlSy 7mlGkjBCIhGbFg8Rqh6Fut81pvKvx898HMIIiyuQcdYZTTLg2TTpSyTYSx5GTEzj1mp T1WXH2Yjh298= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id m5H0kmva016599; Tue, 17 Jun 2008 04:46:48 +0400 (MSD) (envelope-from ache) Date: Tue, 17 Jun 2008 04:46:47 +0400 From: Andrey Chernov To: Dag-Erling Sm??rgrav , Doug Barton , K?vesd?n G?bor , Diomidis Spinellis , hackers@FreeBSD.org, current@FreeBSD.org, "Sean C. Farley" , Max Khon Message-ID: <20080617004647.GA16546@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> <20080617002224.GA16122@nagual.pp.ru> <20080617002808.GB16122@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080617002808.GB16122@nagual.pp.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: 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 00:47:08 -0000 On Tue, Jun 17, 2008 at 04:28:10AM +0400, Andrey Chernov wrote: > 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. Quick source inspection reveals that BSD grep operates with single bytes only (util.c) so big rewriting with mbrtowc() is needed. Adding setlocale() only will makes it only useable with single byte locales, in success case. -- http://ache.pp.ru/