Regional & Language crashes when locale is set to "C" during install

Bug #386029 reported by Adrian Jadic
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Fix Released
Undecided
Arne Goetje

Bug Description

Binary package hint: systemsettings-kde4

This behaviour is the same in Ubuntu as well as Kubuntu.

During installation I chose to have "no localization" Generic English
This has set the LC** variables to "C". So far so good.

If I try to change this through GUI "Regional and Language" I first get a kdesudo login and after I type the password the software crashes. In other words there is no way to install a language once it was set to "C".

However if a language is chosen during install the setting works fine and other languages can be installed and set as system languages.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

This is likely the language selector program crashing. (It is launched via sudo when you click the install new languages button)

affects: kdebase-workspace (Ubuntu) → language-selector (Ubuntu)
Revision history for this message
Adrian Jadic (jadic) wrote :

Sounds right. It is only the portion about installing or setting the system language that fails to run. AFAIK this is added by Kubuntu and is not a KDE issue.

And as I said the same thing happens in Ubuntu.

Can someone confirm this? It should be pretty easy to do so.

Revision history for this message
Loïc Minier (lool) wrote :

If I set LANG=C in /etc/default/locale, I get a lang-sel crash:
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py:839: GtkWarning: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed
  cell = combo.get_child().get_cell_renderers()[0]
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py:806: GtkWarning: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed
  cell = combo.get_child().get_cell_renderers()[0]
Traceback (most recent call last):
  File "/usr/bin/gnome-language-selector", line 34, in <module>
    options=options)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 172, in __init__
    self.updateSystemDefaultCombo()
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 58, in wrapper
    res = f(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 817, in updateSystemDefaultCombo
    defaultLangName = self._localeinfo.translate(defaultLangCode)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/LocaleInfo.py", line 148, in translate
    return self.translate_language(locale)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/LocaleInfo.py", line 110, in translate_language
    lang_name = gettext.dgettext('iso_639', self._lang[lang])
KeyError: 'C'

Changed in language-selector (Ubuntu):
status: New → Confirmed
Arne Goetje (arnegoetje)
Changed in language-selector (Ubuntu):
assignee: nobody → Arne Goetje (arnegoetje)
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.4.11

---------------
language-selector (0.4.11) karmic; urgency=low

  * Fix crash in gnome-language-selector (LP: #427716)
  * Fall back to 'en_US' locale if none has been defined or has been set
    to 'C'. (LP: #386029) (LP: #346363) (LP: #347240)
  * Fix crash when ~/.xinput/ is not present (LP: #219218)
  * Add manpage for gnome-language-selector (Thanks to Alex Lourie)
   (LP: #426642)
  * Fix typo in LanguageSelector/FontConfig.py (LP: #219398)
  * data/languagelist: add fallback codes for all English variations we
    have as locales (LP: #47280) (LP: #72952)
  * Update translations from Launchpad
  * Really remove now obsolete Chinese entry from language list
    (LP: #431228)

 -- Arne Goetje <email address hidden> Thu, 17 Sep 2009 22:41:58 +0800

Changed in language-selector (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.