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

From: Alecs King <alecsk_at_gmail.com>
Date: Tue, 31 May 2005 03:37:11 +0800
6.0-current as of May 27.
world cvsup'd & built at May 25.

[alecs_at_~]$ echo $LC_CTYPE
zh_CN.GBK
[alecs_at_~]$ echo a | grep -i A
a
[alecs_at_~]$ echo a | grep -i a
a
[alecs_at_~]$ echo A | grep -i A	# XXX
[alecs_at_~]$ echo A | grep -i a	# XXX

[alecs_at_~]$ export LC_CTYPE=C
[alecs_at_~]$ echo a | grep -i A
a
[alecs_at_~]$ echo a | grep -i a
a
[alecs_at_~]$ echo A | grep -i A
A
[alecs_at_~]$ echo A | grep -i a
A


-- 
Alecs King
Received on Mon May 30 2005 - 17:33:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC