Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2008 09:21:52 +0200
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Andrey Chernov <ache@nagual.pp.ru>, 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:  <48576610.9080808@FreeBSD.org>
In-Reply-To: <20080617004647.GA16546@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> <20080617004647.GA16546@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrey Chernov escribió:
> 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.
>   
Sorry for the possibly silly question, but what we mean localization 
here in the case of grep? As far as I see, it works with wide chars, 
because the regex library is aware of those. What other aspect needs to 
be taken into account? In case of sort, I understarnd that it should 
explicitly handle wide characters due to the different alphabet of the 
different languages and yes, that seems to be a difficult task...

Gábor



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