Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2005 03:37:11 +0800
From:      Alecs King <alecsk@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   [grep bug?] -i odd behavior on multibyte locale
Message-ID:  <20050530193711.GA10259@alc.bsd.st>

next in thread | raw e-mail | index | archive | help
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

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


-- 
Alecs King



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050530193711.GA10259>