Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2008 04:46:47 +0400
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        Dag-Erling Sm??rgrav <des@des.no>, Doug Barton <dougb@FreeBSD.org>, K?vesd?n G?bor <gabor@t-hosting.hu>, Diomidis Spinellis <dds@aueb.gr>,  hackers@FreeBSD.org, current@FreeBSD.org, "Sean C. Farley" <scf@FreeBSD.org>, Max Khon <fjoe@samodelkin.net>
Subject:   Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]
Message-ID:  <20080617004647.GA16546@nagual.pp.ru>
In-Reply-To: <20080617002808.GB16122@nagual.pp.ru>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080617004647.GA16546>