gnome-languages.c: Encoding issue when translating locale modifiers
In Ubuntu (not yet in upstream GNOME...) this translation is present:
$ echo $(LC_MESSAGES=sr_RS.UTF-8@latin gettext -d gnome-desktop-3.0 'Latin')
latinički
But in Settings -> Region & Language -> Format I see the option
Srbija (Srpski — latini?ki)
i.e. the 'č' character is replaced by a question mark.
The explanation seems to be that gettext queries nl_langinfo (CODESET)
which depends on the LC_CTYPE
part of the current locale. However, the LC_CTYPE
category was overlooked in gnome_get_translated_modifier()
in gnome-languages.c
.