[grep bug?] -i odd behavior on multibyte locale

Tim Robbins tim at robbins.dropbear.id.au
Tue May 31 05:53:11 PDT 2005


On Tue, May 31, 2005 at 03:37:11AM +0800, Alecs King wrote:
> 6.0-current as of May 27.
> world cvsup'd & built at May 25.
> 
> [alecs@~]$ echo $LC_CTYPE
> zh_CN.GBK
> [alecs@~]$ echo a | grep -i A
> a
> [alecs@~]$ echo a | grep -i a
> a
> [alecs@~]$ echo A | grep -i A	# XXX
> [alecs@~]$ echo A | grep -i a	# XXX
[...]

I've just checked a fix for this in to -CURRENT. Please let me know
if this doesn't solve the problem, or if you run into further problems.


Tim


More information about the freebsd-current mailing list