Created attachment 119343 [details] [review] Support 3 component locales Linux only supports locales with 2 components while POSIX supports locales with 3 components. DragonFly and FreeBSD both follow POSIX, which causes fontconfig to give the following warning: % env LC_CTYPE=sr_Cyrl_RS.UTF-8 leafpad Fontconfig warning: ignoring sr_Cyrl_RS.UTF-8: not a valid region tag For more information about the POSIX documentation: http://tools.ietf.org/html/bcp47 Chapter 2.1.1 goes over formatting and Appendix-A has more examples.
Do you have any pointers that explains POSIX supports BCP47 as a locale representation? The URL you pointed out is to explan what BCP47 is. it isn't same to what I want to know. AFAIK the POSIX locale system follows similar to BCP47 but has different definition for modifiers say. usually script representation goes into a modifier prefixed by @.
cldr is the authority and that's how they refer to locales and repeat examples of 3-group locales 2 component isn't good enough: serbia has latin and cyrillic based languages, you can't represent both with only 2 components. The cldr website has a BCP47 section. http://cldr.unicode.org/ (Unicode Common Locale Data Repository) http://unicode.org/Public/cldr/2.0.1/ (cldr files)
Those two could be represented to sr_RS@latin and sr_RS@cyrilic in glibc say. it isn't entirely true. anyway, just wonder if there are any pointers as a reference that POSIX really supports that style.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/49.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.