non-existing locale crashes gourmet

Bug #315836 reported by Rolf Leggewie
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gourmet (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gourmet

rolf@X24:~$ locale -a
C
de_DE.utf8
en_US.utf8
ja_JP.utf8
POSIX
rolf@X24:~$ LANG=no_DE.UTF-8 gourmet

(gourmet:12229): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Unable to properly set locale no_DE.UTF-8
Traceback (most recent call last):
  File "/usr/bin/gourmet", line 13, in <module>
    from gourmet.OptionParser import *
  File "/usr/share/gourmet/gourmet/__init__.py", line 11, in <module>
    import defaults.defaults as defaults
  File "/usr/share/gourmet/gourmet/defaults/__init__.py", line 1, in <module>
    from defaults import lang
  File "/usr/share/gourmet/gourmet/defaults/defaults.py", line 6, in <module>
    locale.setlocale(locale.LC_ALL,'')
  File "/usr/lib/python2.5/locale.py", line 478, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Starting with LANG=de_DE.UTF-8 works fine. The problem still occurs in 0.14.3-1

Related branches

Rolf Leggewie (r0lf)
Changed in gourmet:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Thomas, can you please comment if this bug should be fixed in 0.14.5?

Revision history for this message
Thomas M. Hinkle (thomas-hinkle) wrote :

I believe this should be fixed -- there's a fallback to English if you get errors setting the locale.

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

This bug was fixed in the package gourmet - 0.15.2-0ubuntu1

---------------
gourmet (0.15.2-0ubuntu1) lucid; urgency=low

  * New upstream release (LP: #431806, Closes: #530841). Also fixes the
    following bugs:
    - LP: #315836
    - LP: #295982
    - LP: #316445 (the GUI has been changed so this no longer applies)
  * Drop forcing of python2.5
  * debian/control: Recommends python-gnome2-extras for printing
  * drop debian/patches/05-add_manpage.patch, which is now included upstream
  * Fix some lintian warnings:
    - add debian/README.source
    - debian/control: bump Standards-Version to 3.8.3
    - debian/compat: bump to 5
  * debian/control: Depends on python-poppler (needed for printing)
  * debian/patches/01_fix_raise_str.patch: don't raise str exception
    in src/lib/plugin_gui.py
  * debian/patches/02_fix_nutrition_index_out_of_range.patch: don't
    add entries beyond the width of the field in databaseGrabber.py
  * debian/patches/03_dont_remove_nonexistent_plugin.patch: don't
    remove an inactive plugin in plugin_loader.py and don't deactivate
    a plugin from a non-existent database
 -- Jamie Strandboge <email address hidden> Tue, 29 Dec 2009 09:12:49 -0600

Changed in gourmet (Ubuntu):
status: Triaged → 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.