Comment 15 for bug 223281

Revision history for this message
Jovica Lesevic (jovica-lesevic) wrote : Re: [Bug 223281] Re: locale._parse_localename fails when localename does not contain encoding information (was: alacarte crashed with ValueError in _parse_localename() )

yes , i think so ....

2009/11/11 David Planella <email address hidden>

> Jonathan,
>
> Thanks for the great work. If you think the fix is ready for release, it
> might be worth considering it for a stable release update (SRU).
>
> Do you (or anyone else) think you could follow the
> https://wiki.ubuntu.com/StableReleaseUpdates procedure so that this fix
> can be considered for Karmic?
>
> Thanks!
>
> --
> locale._parse_localename fails when localename does not contain encoding
> information (was: alacarte crashed with ValueError in _parse_localename() )
> https://bugs.launchpad.net/bugs/223281
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Ubuntu Translations (internationalization and localization): In
> Progress
> Status in “python2.6” package in Ubuntu: In Progress
>
> Bug description:
> Binary package hint: alacarte
>
> "Main Menu" worked with first ubuntu 8.04 installation. After serbian
> language pack installed program did not working any more and in the terminal
> generate errors such like this:
>
> user@computer:~$ alacarte
> 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: sr_ME
> Error in sys.excepthook:
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in
> apport_excepthook
> report_file = open(pr_filename, 'wt')
> IOError: [Errno 13] Permission denied:
> '/var/crash/_usr_bin_alacarte.1000.crash'
>
> Original exception was:
> 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: sr_ME
>
> ProblemType: Crash
> Architecture: i386
> Date: Sun Apr 27 23:08:17 2008
> DistroRelease: Ubuntu 8.04
> ExecutablePath: /usr/bin/alacarte
> InterpreterPath: /usr/bin/python2.5
> Package: alacarte 0.11.5-0ubuntu1
> PackageArchitecture: all
> ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
> ProcEnviron:
>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
> LANG=sr_ME
> SHELL=/bin/bash
> PythonArgs: ['/usr/bin/alacarte']
> SourcePackage: alacarte
> Title: alacarte crashed with ValueError in _parse_localename()
> Uname: Linux 2.6.24-16-generic i686
> UserGroups:
>