CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep
Makefile distinfo]
Andrey Chernov
ache at nagual.pp.ru
Tue Jun 17 07:46:29 UTC 2008
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/
More information about the freebsd-hackers
mailing list