[Bug 909256] [NEW] gnome-language-selector crashed with ValueError in _build_localename(): too many values to unpack

Launchpad Bug Tracker 909256 at bugs.launchpad.net
Thu Dec 29 16:13:30 UTC 2011


You have been subscribed to a public bug by Ubuntu Foundation's Bug Bot (crichton):

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

** Affects: language-selector (Ubuntu)
     Importance: Undecided
     Assignee: Gunnar Hjalmarsson (gunnarhj)
         Status: In Progress


** Tags: patch
-- 
gnome-language-selector crashed with ValueError in _build_localename(): too many values to unpack
https://bugs.launchpad.net/bugs/909256
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list