No support for ml_IN locale

Bug #258635 reported by Chris Coulson
4
Affects Status Importance Assigned to Milestone
python2.5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python2.5

Praveen P asked question 42309 because they cannot run alacarte with the locale set to ml_IN. When attempting to run alacarte, it terminates with the following traceback:

Traceback (most recent call last):
  File "/usr/bin/alacarte", line 36, in <module>
    main()
  File "/usr/bin/alacarte", line 32, in main
    app = MainWindow(datadir, version, sys.argv)
  File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__
    self.editor = MenuEditor()
  File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 35, in __init__
    self.locale = locale.getdefaultlocale()[0]
  File "/usr/lib/python2.5/locale.py", line 443, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.5/locale.py", line 375, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: ml_IN

I can confirm this behaviour by executing alacarte the following way:

LC_ALL=ml_IN alacarte

If I execute something like Gedit with this locale, then it appears correctly. Some information about my system:

chr1s@chris-desktop:~$ apt-cache policy python2.5
python2.5:
  Installed: 2.5.2-2ubuntu4.1
  Candidate: 2.5.2-2ubuntu4.1
  Version table:
 *** 2.5.2-2ubuntu4.1 0
        500 http://archive.ubuntu.com hardy-security/main Packages
        100 /var/lib/dpkg/status
     2.5.2-2ubuntu4 0
        500 http://archive.ubuntu.com hardy/main Packages
chr1s@chris-desktop:~$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

After looking in /usr/lib/python2.5/locale.py, I can indeed confirm that there is no support for this locale.

Related branches

CVE References

Revision history for this message
പ്രവീണ്‍ (pravin-vet) wrote :

praveen@praveen-desktop:~$ apt-cache policy python2.5
python2.5:
  Installed: 2.5.2-2ubuntu4.1
  Candidate: 2.5.2-2ubuntu4.1
  Version table:
 *** 2.5.2-2ubuntu4.1 0
        500 http://security.ubuntu.com hardy-security/main Packages
        100 /var/lib/dpkg/status
     2.5.2-2ubuntu4 0
        500 http://in.archive.ubuntu.com hardy/main Packages

Matthias Klose (doko)
Changed in python2.5:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python2.5 - 2.5.2-11ubuntu1

---------------
python2.5 (2.5.2-11ubuntu1) intrepid; urgency=low

  * Update to 20080912, taken from the 2.5 release branch.
    - debian/patches/subprocess-eintr-safety.dpatch: Update.
    - debian/patches/CVE-2007-4965.dpatch: Remove, applied upstream.
    - debian/patches/CVE-2008-2315.dpatch: Remove, applied upstream.
  * Update locale.locale_aliases from current X11 locale.alias.
    LP: #258635.

 -- Matthias Klose <email address hidden> Fri, 12 Sep 2008 11:04:21 +0200

Changed in python2.5:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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