CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo]

Andrey Chernov ache at nagual.pp.ru
Tue Jun 17 00:47:08 UTC 2008


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/


More information about the freebsd-current mailing list