Error prompting for filename with certain locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Whyteboard |
Fix Committed
|
High
|
Steven Sproat |
Bug Description
Whyteboard 0.41.1
Operating System: Linux 2.6.35-
Screen Resolution: 1024x768
Python Version: 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5]
wxPython Version: 2.8.11.0 (gtk2-unicode)
wxPython Info: (__WXGTK__, wxGTK, unicode, gtk2, wx-assertions-off, SWIG-1.3.29)
Python Encoding: Default=ascii File=UTF-8
wxPython Encoding: utf-8
System Architecture: 32bit i686
Byte order: little
Frozen: False
#---- End System Information ----#
#---- Preferences ----#
language = Chinese
#---- Traceback Info ----#
*** Fri Jul 8 09:44:32 2011 ***
Traceback (most recent call last):
File \"/usr/
self.
File \"/usr/
_file = _file.replace(
UnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xe5 in position 4: ordinal not in range(128)
probably the result of doing the replace on Chinese characters
fixed by reverting to a blank string when there's no filename :)