gnome-language-selector crashed with KeyError in translate_language()

Bug #439728 reported by Martin Spacek
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Fix Released
Undecided
Arne Goetje

Bug Description

Binary package hint: language-selector

I defined a custom locale for LC_TIME according to these instructions:

http://ccollins.wordpress.com/2009/01/06/how-to-change-date-formats-on-ubuntu/

Now I have Thunderbird displaying 24 hour times, which is what I wanted. Curious, I went back to the language selector, and it crashes right away with this error. Not that I actually need to modify anything any more, just thought I'd report it.

Here's my locale output:

LANG=en_CA.UTF-8
LANGUAGE=en_CA.UTF-8
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME=custom.UTF-8
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=

ProblemType: Crash
Architecture: i386
Date: Wed Sep 30 16:40:49 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gnome-language-selector
InterpreterPath: /usr/bin/python2.6
Package: language-selector 0.4.11
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gnome-language-selector
ProcEnviron:
 LC_TIME=custom.UTF-8
 LANGUAGE=en_CA.UTF-8
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
PythonArgs: ['/usr/bin/gnome-language-selector']
SourcePackage: language-selector
Title: gnome-language-selector crashed with KeyError in translate_language()
Uname: Linux 2.6.31-11-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Martin Spacek (mspacek) wrote :
visibility: private → public
Revision history for this message
Apport retracing service (apport) wrote : Possible regression detected

This crash has the same stack trace characteristics as bug #347240. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.

tags: removed: need-duplicate-check
tags: added: regression-retracer
Revision history for this message
Arne Goetje (arnegoetje) wrote :
Changed in language-selector (Ubuntu):
status: New → Fix Committed
assignee: nobody → Arne Goetje (arnegoetje)
Revision history for this message
Arne Goetje (arnegoetje) wrote :

Explanation: the crash happens because the cusom made locale 'custom' does not exist in the ISO639 list. The locale name should be something like 'en_IE.UTF-8@custom' instead.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * Add openoffice.org-help-* and evolution-documentation-* to the
    package dependencies (Thanks to Timo Jyrinki) (LP: #414753)
  * add /usr/bin/check-language-support to query missing packages for a
    given language code or all installed languages (LP: #434173)
  * LanguageSelector/LangInfo.py: don't crash if langcode is not in the
    ISO639 list (LP: #439728)

 -- Arne Goetje <email address hidden> Wed, 14 Oct 2009 12:42:17 +0100

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.