Why en_US.UTF-8 locale consider a < A?

Xin Li delphij at delphij.net
Wed Mar 8 08:28:28 UTC 2017


Hi,

I recently noticed that when LANG and LC_CTYPE are set to en_US.UTF-8,
the following file:

%%%%%
1
2
A
a
B
b
%%%%

I got:

$ LANG=C LC_CTYPE=C sort testcase
1
2
A
B
a
b
$ LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 sort testcase
1
2
a
A
b
B

Is this result correct?  It matches some Debian behavior but not macOS
behavior.

Cheers,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20170308/49f2c3a1/attachment.sig>


More information about the freebsd-hackers mailing list