On Mon, 13 Aug 2001, Philip S Tellis wrote:
Just set export LANG=C
Cool. Why does it happen like this? In RH6.2 I have LANG=en_US. On 7.1 it doesn't work right, but LANG=en works. Explain.
In glibc 2.1.x, sorting order for en_US was defined in such a way that the alphabets are sorted in order of first appearance in ISO-10646. In ISO-10646, uppercase letters appear before lowercase letters. RedHat Linux 6.2 and earlier versions used glibc 2.1.x, that's why character are sorted like that.
In glibc 2.2.x, the collating sequence for en_US is based on ISO/IEC 14651 standard in which, I think, it sorts case insensitive alphabetically.
- keyur