Opened 11 years ago

Last modified 8 years ago

#1856 new defect

wxGUI with LANG=pl_PL.utf8 throws "'ascii' codec can't decode byte"

Reported by: msieczka Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: wxGUI Version: svn-releasebranch64
Keywords: LANG, locale Cc: grass-dev@…
CPU: x86-64 Platform: Linux

Description

GRASS SVN releasebranch_64 r54578.

Steps to reproduce:

  1. Set your LANG to pl_PL.utf8:
    $ locale | grep LANG
    LANG=pl_PL.utf8
    
  1. Run GRASS in wxGUI mode.
  1. Add any vector map (eg. spearfish60/bugsites) to Map Layers.
  1. 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

Change History (6)

comment:1 by marisn, 10 years ago

Milestone: 6.4.36.4.4

Is this still an issue?

in reply to:  1 comment:2 by mlennert, 10 years ago

Replying to marisn:

Is this still an issue?

I don't see it when calling the "Metadata", but other than that it pretty much sounds the same as #2120.

Moritz

comment:3 by hcho, 10 years ago

See #2120 for a solution.

comment:4 by hcho, 10 years ago

Fixed in r60307

in reply to:  4 comment:5 by glynn, 10 years ago

Replying to hcho:

Fixed in r60307

Not a fix.

r60307 reverted.

comment:6 by neteler, 8 years ago

Milestone: 6.4.46.4.6
Note: See TracTickets for help on using tickets.