Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2008 11:46:07 +0400
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        Gabor Kovesdan <gabor@FreeBSD.org>
Cc:        Doug Barton <dougb@FreeBSD.org>, current@FreeBSD.org, Diomidis Spinellis <dds@aueb.gr>, hackers@FreeBSD.org, K?vesd?n G?bor <gabor@t-hosting.hu>, Dag-Erling Sm??rgrav <des@des.no>, "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:  <20080617074607.GA42047@nagual.pp.ru>
In-Reply-To: <48576610.9080808@FreeBSD.org>
References:  <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> <48576610.9080808@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 17, 2008 at 09:21:52AM +0200, Gabor Kovesdan wrote:
> 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? 

See how word boundary handled in util.c there for example. They treat 
buffer as single chars only. wctype should be used instead ctype in all 
places in the code with corresponding mbrtowc conversion.

-- 
http://ache.pp.ru/



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