GNOME Bugzilla – Bug 604815
g_get_language_names can return incorrect redundant entries
Last modified: 2011-09-22 18:56:17 UTC
if you set LANG to "es_ES:es_MX", g_get_language_names() will return es_ES, es, es_MX, es which, even ignoring the redundancy, is wrong, because it includes generic es before es_MX. It should output es_ES, es_MX, es
Created attachment 149900 [details] [review] g_get_language_names: don't include redundant languages
I made the same request in bug 161087 but it was rejected.
hm... I'd say gettext's behavior is wrong. :-) i was looking at this in the context of bug 597004 (automatic Accept-Language support in libsoup). if people don't want to change g_get_language_names() I can put the sorting there instead.
*** This bug has been marked as a duplicate of bug 161087 ***