#1856: wxGUI with LANG=pl_PL.utf8 throws "'ascii' codec can't decode byte"
--------------------------+-------------------------------------------------
Reporter: msieczka | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Keywords: LANG, locale | Platform: Linux
Cpu: x86-64 |
--------------------------+-------------------------------------------------
GRASS SVN releasebranch_64 r54578.
Steps to reproduce:
1. Set your LANG to pl_PL.utf8:
{{{
$ locale | grep LANG
LANG=pl_PL.utf8
}}}
2. Run GRASS in wxGUI mode.
3. Add any vector map (eg. spearfish60/bugsites) to Map Layers.
4. Right click the vector map in Map Layers > Metadata = error:
{{{
Traceback (most recent call last):
File "/opt/grass64-svn/etc/wxpython/gui_core/goutput.py",
line 749, in OnCmdOutput
self.cmdOutput.AddTextWrapped(message, wrap = None)
File "/opt/grass64-svn/etc/wxpython/gui_core/goutput.py",
line 1228, in AddTextWrapped
txt = EncodeString(txt)
File "/opt/grass64-svn/etc/wxpython/core/gcmd.py", line
103, in EncodeString
return string.encode(enc)
File "/usr/lib/python2.7/encodings/iso8859_2.py", line 12,
in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xb3 in position 7: ordinal
not in range(128)
Traceback (most recent call last):
File "/opt/grass64-svn/etc/wxpython/gui_core/goutput.py",
line 749, in OnCmdOutput
self.cmdOutput.AddTextWrapped(message, wrap = None)
File "/opt/grass64-svn/etc/wxpython/gui_core/goutput.py",
line 1228, in AddTextWrapped
txt = EncodeString(txt)
File "/opt/grass64-svn/etc/wxpython/core/gcmd.py", line
103, in EncodeString
return string.encode(enc)
File "/usr/lib/python2.7/encodings/iso8859_2.py", line 12,
in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xf3 in position 14: ordinal
not in range(128)
(Sun Jan 20 19:46:39 2013) Polecenie zakończone (0 sec)
}}}
Python version used:
{{{
GRASS 6.4.3svn (spearfish60):~ > python --version
Python 2.7.3
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1856>
GRASS GIS <http://grass.osgeo.org>