After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686493 - Opening Keyboard layout by default select Chinese (first entry) not the current language
Opening Keyboard layout by default select Chinese (first entry) not the curre...
Status: RESOLVED DUPLICATE of bug 681682
Product: gnome-control-center
Classification: Core
Component: Region & Language
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-19 19:24 UTC by Justin
Modified: 2012-11-05 16:54 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6



Description Justin 2012-10-19 19:24:13 UTC
When opening keyboard layout module in control center, say for example to change my input sources, the language tab is visible first. In this tab, Chinese (1st entry) is selected by default, not my current language preference. 

This is very easy to be missed by the user. But next time when logged in, the user will be greeted with Great Chinese text through out the desktop.
Comment 1 Justin 2012-11-05 04:53:18 UTC
Anyone, please?
Comment 2 Bastien Nocera 2012-11-05 08:05:40 UTC
Start with the output of:
gnome-control-center --verbose region
and mention which version of gnome-control-center you're using, as well as your current language.
Comment 3 Justin 2012-11-05 09:30:09 UTC
Okay, I noticed that if I start keyboard layout directly, it doesn't select any languages, but if I start with system settings and select keyboard layout, I get Chinese selected. In either case, if I select a different panel say Formats and then come back to Languages, Chinese is selected.

Version: gnome-control-center 3.6.1
Current language: English UK
OS: Ubuntu Gnome Remix 12.10

I get the following output in terminal with verbose

** (gnome-control-center:4212): DEBUG: Enabling debugging
** (gnome-control-center:4212): DEBUG: No extra argument
(gnome-control-center:4212): common-cc-panel-DEBUG: Ignoring 'zh_SG.utf8' as a locale, since it lacks translations
(gnome-control-center:4212): common-cc-panel-DEBUG: Ignoring 'C.UTF-8' as a locale, since it lacks translations
(gnome-control-center:4212): common-cc-panel-DEBUG: Trying to select lang 'en_GB.utf8' in treeview

(gnome-control-center:4212): common-cc-panel-WARNING **: Could not find current language '\xe0\xcc\u000e\xbd'\u007f' in the treeview

(gnome-control-center:4212): common-cc-panel-WARNING **: locale '"en_IN"' isn't valid


(gnome-control-center:4212): common-cc-panel-WARNING **: locale '"en_IN"' isn't valid
Comment 4 Justin 2012-11-05 09:32:07 UTC
Correction

.... if I select a different tab (not panel) say Formats......
Comment 5 Bastien Nocera 2012-11-05 15:59:25 UTC
Ubuntu don't ship a gnome-control-center 3.6, I don't know what patches the GNOME remix ships with, the package is outdated (3.6.2 is out already, and the gnome-3-6 branch has more fixes).

Certainly, this looks broken:
(gnome-control-center:4212): common-cc-panel-WARNING **: Could not find current
language '\xe0\xcc\u000e\xbd'\u007f' in the treeview

Jeremy, what patches do you ship?

Justin, please install the debug packages of gnome-control-center and run:
valgrind --tool=memcheck --track-origins=yes gnome-control-center
while reproducing the problem.
Comment 6 Jeremy Bicha 2012-11-05 16:40:02 UTC
This is a duplicate of https://bugzilla.gnome.org/681682

Bastien, the bad patch is http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/gnome-control-center/quantal/view/head:/debian/patches/52_ubuntu_language_list_mods.patch

I found this weekend that if I uncomment lines 79-80, I don't have the "first entry selected" problem but I do get my current language listed twice.

This problem is compounded by some Ubuntu installer bug (all languages except for the selected language are removed during install, but somehow Chinese isn't removed in some cases).

So to some degree this is NOTGNOME, but Ubuntu would really like to use GNOME's language panel in the near future. The blocker is that we use language packs instead of having languages installed in the individual packages, and we want to support fallback languages (a Tunisian may want to have Arabic where possible but French otherwise).

https://live.gnome.org/Design/SystemSettings/RegionAndLanguage/ChangeProposals
Comment 7 Bastien Nocera 2012-11-05 16:54:26 UTC
Marking as a duplicate then.

The patch seems to think it's not imporrtant to add the user's _current_ language to the list.
Any other engineering discussions would be best served by happening in Bugzilla.

*** This bug has been marked as a duplicate of bug 681682 ***