[Pkg-gourmet-devel] Bad unicode handling

Roberto C. Sanchez roberto at familiasanchez.net
Tue Sep 27 23:23:23 UTC 2005


My default locale is es_ES.  When I run gourmet, opening the "New
Recipe" dialog results in this:

$ gourmet
/usr/share/gourmet/mnemonic_manager.py:223: GtkWarning: Invalid input string
  widget.set_text_with_mnemonic(txt[0:index] + '_' + txt[index:])
Traceback (most recent call last):
  File "/usr/share/gourmet/GourmetRecipeManager.py", line 634, in show
    self.make_rec_visible(rc.current_rec)
  File "/usr/share/gourmet/recindex.py", line 142, in make_rec_visible
    self.redo_search()
  File "/usr/share/gourmet/recindex.py", line 335, in redo_search
    self.search()
  File "/usr/share/gourmet/recindex.py", line 341, in search
    searchBy = self.searchByDic[unicode(searchBy)]
KeyError: u't\xedtulo'
Violación de segmento

The segfault at the end is from closing the dialog.  Also, using the C
and en_US locales does not cause this error, but still result in a
segmentation fault on closing the "New Recipe" dialog.

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-gourmet-devel/attachments/20050927/a87b0e24/attachment.pgp


More information about the Pkg-gourmet-devel mailing list