Closed dankamongmen closed 1 month ago
apparently _nl_normalize_charset() of glibc removes everything but alnums, and converts to lowercase. replace strcmp() against "UTF-8" with encoding_is_utf8(), which matches this behavior, and supports the optional "cs" ("character set") prefix.
Closes #2780, reported by @barracuda156.
See https://github.com/bminor/glibc/blob/5f72f9800b250410cad3abfeeb09469ef12b2438/intl/l10nflist.c#L330-L334 and https://serverfault.com/questions/616744/is-there-a-difference-between-en-us-utf8-and-en-us-utf-8
https://www.youtube.com/watch?v=PeMvMNpvB5M !
this closed #2779 , not #2780
apparently _nl_normalize_charset() of glibc removes everything but alnums, and converts to lowercase. replace strcmp() against "UTF-8" with encoding_is_utf8(), which matches this behavior, and supports the optional "cs" ("character set") prefix.
Closes #2780, reported by @barracuda156.
See https://github.com/bminor/glibc/blob/5f72f9800b250410cad3abfeeb09469ef12b2438/intl/l10nflist.c#L330-L334 and https://serverfault.com/questions/616744/is-there-a-difference-between-en-us-utf8-and-en-us-utf-8