Should glibc provide a builtin C.UTF-8 locale?

Florian Weimer fweimer@redhat.com
Tue Oct 27 21:43:00 GMT 2015


On 10/27/2015 01:22 PM, Mike FABIAN wrote:
>      Do we care how a C.UTF-8 locale sorts outside of the ASCII range?

Maybe I'm approaching this from completely the wrong end, but I think
“LC_ALL=C sort” and “LC_ALL=C.UTF-8 sort” should have the same ordering
and speed—otherwise C.UTF-8 is somewhat less useful than it could be.  I
think this means lexicographical ordering by unsigned bytes.  Thanks to
UTF-8 magic, that coincides with codepoint ordering for well-encoded UTF-8.

Florian



More information about the Libc-alpha mailing list