Skip to content

Accept "UTF-8" as a valid locale

Jean Abou Samra requested to merge jeanas/fontconfig:lc_ctype_utf8 into main

LC_CTYPE is set to "UTF-8" on some macOS systems, which is POSIX-compliant in a strict sense, but breaks the usual assumption that a locale name has the form "ll_LL.encoding".

https://unix.stackexchange.com/questions/503110/valid-values-for-lc-ctype

Previously, this would cause the warning

Fontconfig warning: ignoring UTF-8: not a valid region tag


I'm a first-time contributor to Fontconfig. Please let me know if I've missed anything. Thanks!

Merge request reports