← Back to team overview

desktop-packages team mailing list archive

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

 

is that bug different from bug #905429?

-- 
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:
  In Progress

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