4 ms·
You always have to know locale to handle case conversion - this is not actually defined the same way in different human languages and it is a mistake to pretend
by JuniperMesos 1y ago
You always have to know locale to handle case conversion - this is not actually defined the same way in different human languages and it is a mistake to pretend it is.
- newpavlov 1y agoIn most cases locale is encoded in character itself, i.e. Latin "a" and Cyrillic "a" are two different characters, despite being visually indistinguishable in most cases. The "language-sensitive" section of the special casing document [0] is extremely small and contains only the cases of stupid reuse of Latin I. [0]: https://www.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt https://www.unicode.org/Public/UCD/latest/ucd/SpecialCasing....