GNOME Bugzilla – Bug 783043
Critical on startup due to Debian's Esperanto locale
Last modified: 2017-05-24 17:05:15 UTC
Debian has a bunch of custom locales not present in other distros, including an Esperanto locale with no country code at all: "eo.UTF-8" and also plain "eo" (non-UTF-8). cc-language-chooser isn't quite prepared to handle languages without a country code. It actually looks just fine currently -- the country name is just missing from the list box, which seems like the right thing to do -- but emits a critical warning. We should probably avoid the critical.
Created attachment 352491 [details] [review] language: Fix critical when creating widget for Esperanto It has no country code, and the language chooser is unprepared to handle this case. gnome_parse_locale can legitimately return success with a NULL country and we should handle that. Note this locale exists only in Debian, which has a bunch of glibc patches to add new locales, but apparently Debian is big and we should probably make it work properly.
Review of attachment 352491 [details] [review]: looks fine, thanks
Attachment 352491 [details] pushed as 75cb20b - language: Fix critical when creating widget for Esperanto