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 694149 - keyboard indicator uses long multiline string for layout shortname
keyboard indicator uses long multiline string for layout shortname
Status: RESOLVED DUPLICATE of bug 692219
Product: gnome-desktop
Classification: Core
Component: general
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
: 691143 695113 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-02-19 08:40 UTC by Christophe Fergeau
Modified: 2013-03-16 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
overlong string in keyboard indicator (642.05 KB, image/png)
2013-02-19 08:40 UTC, Christophe Fergeau
  Details
gnome-xkb-info: Handle duplicated layouts (2.60 KB, patch)
2013-02-26 09:57 UTC, Rui Matos
committed Details | Review

Description Christophe Fergeau 2013-02-19 08:40:07 UTC
Created attachment 236729 [details]
overlong string in keyboard indicator

See attached screenshot
My system (including gnome-shell) is in French, I tried adding an "English (programmer's dvorak)" layout in addition to the French layout in system settings, and I got what is shown on the screenshot when selecting this new layout. This multiline string is the header of xkeyboard-config's fr.po, which makes me think that the keyboard indicator is trying to translate an empty string "" ( http://cgit.freedesktop.org/xkeyboard-config/tree/po/fr.po ).
I can experiment further if pointed at things to try to figure this out :)
Comment 1 Christophe Fergeau 2013-02-19 08:50:12 UTC
I have now verified that with LC_ALL=C gnome-shell --replace, I get an empty string in the keyboard indicator where other keyboard have a few characters describing the keyboard language (eg 'fr' for the 'French' keyboard). What I forgot to mention is that in addition to this cosmetic issue, the keyboard isn't switched to dvorak layout even if it's selected. This used to work with older 3.6 versions, iirc 'en' was shown as the short keyboard name.
Comment 2 Rui Matos 2013-02-25 17:18:30 UTC
Pretty sure this should is fixed in master with the patch from bug 692219.

*** This bug has been marked as a duplicate of bug 692219 ***
Comment 3 Christophe Fergeau 2013-02-25 17:55:55 UTC
I tried to rebuild gnome-desktop 3.6.2 with the patch from bug #692219 applied, but this causes gnome-shell to crash at startup, I guess backporting this is more involved ;)
Comment 4 Rui Matos 2013-02-26 09:57:39 UTC
Created attachment 237420 [details] [review]
gnome-xkb-info: Handle duplicated layouts

--

Here's the backported patch. Didn't test it much though. If it works
I'll release a 3.6.4 with it.
Comment 5 Rui Matos 2013-03-04 12:35:05 UTC
*** Bug 695113 has been marked as a duplicate of this bug. ***
Comment 6 Rui Matos 2013-03-06 19:55:38 UTC
*** Bug 691143 has been marked as a duplicate of this bug. ***
Comment 7 Rui Matos 2013-03-13 08:53:05 UTC
*** Bug 695723 has been marked as a duplicate of this bug. ***
Comment 8 Rui Matos 2013-03-16 18:21:10 UTC
Comment on attachment 237420 [details] [review]
gnome-xkb-info: Handle duplicated layouts

I pushed this and did a new 3.6 gnome-desktop release with it.