apply button gives backtrace

Bug #43556 reported by Jonathan Riddell
8
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: language-selector-qt

Clicking apply gives this backtrace. Installed from a chroot.

morn@lor-k-dapper/k3:~ -> DISPLAY=:10 sudo qt-language-selector
updateLanguageList()
updateSystemDefaultCombox()
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
onPushButtonOk(self)
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/LanguageSelector/qt/QtLanguageSelector.py", line 80, in onPushButtonOk
    new_code = self._localeinfo.localeToCodeMap[new_locale]
KeyError: ''

Revision history for this message
mornfall (mornfall) wrote :

The problem was related to absence of any locales other than C on the system. Manually running localedef to generate en_US.UTF-8 fixed it. Something about locales seems to be broken though, i shouldn't need to run localedef by hand?

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This is fixed in my bzr tree and and will be part of the next upload.

Cheers,
 Michael

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

Other bug subscribers

Remote bug watches

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