desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #61650
[Bug 909256] Re: gnome-language-selector crashed with ValueError in _build_localename(): too many values to unpack
On 2012-01-02 18:14, Martin Pitt wrote:
> Thanks Gunnar, I sponsored the debdiff. Setting to Low, as oneiric's
> current pygobject should not expose this,
True, but for some (to me unknown) reason locale names still seem to
appear as 'unicode' type strings sometimes... Thought it was easiest to
just backport the fix. :-/
> but at some point it might be backported.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to language-selector in Ubuntu.
https://bugs.launchpad.net/bugs/909256
Title:
gnome-language-selector crashed with ValueError in
_build_localename(): too many values to unpack
Status in “language-selector” package in Ubuntu:
Fix Released
Status in “language-selector” source package in Oneiric:
Fix Committed
Status in “language-selector” source package in Precise:
Fix Released
Bug description:
SRU note
--------
I suggest that the linked branch is uploaded to oneiric-proposed. The change (patch attached) is identical with the change to LanguageSelector/gtk/GtkLanguageSelector.py at http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/language-selector/precise/revision/146
Even if I don't know the exact reason why unicode strings may be
passed to locale.setlocale() also in Oneiric, the fact that it
apparently can happen is a good enough reason IMO to backport the
Precise fix to Oneiric as an SRU, especially since the regression risk
is zero.
/ Gunnar Hjalmarsson
Rest of description
-------------------
This bug affects Oneiric:
(gnome-language-selector:3039): Gdk-CRITICAL **:
gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(gnome-language-selector:3039): Gdk-CRITICAL **:
gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(gnome-language-selector:3039): Gdk-CRITICAL **:
gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(gnome-language-selector:3039): Gdk-CRITICAL **:
gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(gnome-language-selector:3039): Gdk-CRITICAL **:
gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
(gnome-language-selector:3039): Gdk-CRITICAL **: gdk_window_get_pointer: assertion `GDK_IS_WINDOW (window)' failed
/usr/lib/python2.7/dist-packages/LanguageSelector/LocaleInfo.py:125: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if lang_name == self._lang[lang]:
Traceback (most recent call last):
File "/usr/bin/gnome-language-selector", line 27, in <module>
options=options)
File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 192, in __init__
self.updateLocaleChooserCombo()
File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 57, in wrapper
res = f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 853, in updateLocaleChooserCombo
self.updateExampleBox()
File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 926, in updateExampleBox
locale.setlocale(locale.LC_ALL, mylocale)
File "/usr/lib/python2.7/locale.py", line 539, in setlocale
locale = normalize(_build_localename(locale))
File "/usr/lib/python2.7/locale.py", line 447, in _build_localename
language, encoding = localetuple
ValueError: too many values to unpack
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/909256/+subscriptions
References