Date: Tue, 17 Jun 2008 11:48:21 +0400 From: Andrey Chernov <ache@nagual.pp.ru> To: Gabor Kovesdan <gabor@FreeBSD.org>, 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: <20080617074821.GB42047@nagual.pp.ru> In-Reply-To: <20080617074607.GA42047@nagual.pp.ru> References: <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> <20080617074607.GA42047@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 17, 2008 at 11:46:07AM +0400, Andrey Chernov wrote: > 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. Moreover, ignore case matching there is single byte only too and needs the same. -- http://ache.pp.ru/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080617074821.GB42047>