[GRASS-dev] [GRASS GIS] #1293: Creating mapset with non-latin letter gives python ascii error

GRASS GIS trac at osgeo.org
Tue Dec 22 07:02:20 PST 2015


#1293: Creating mapset with non-latin letter gives python ascii error
--------------------------+-------------------------
  Reporter:  marisn       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  6.4.1
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by annakrat):

 When creating a mapset with non ascii characters from GUI menu - Create
 new mapset, I am getting error:

 {{{
 Traceback (most recent call last):
   File "/home/anna/dev/grass/trunk1/dist.x86_64-unknown-
 linux-gnu/gui/wxpython/lmgr/frame.py", line 950, in
 OnCreateMapset

 mapset = mapset)
   File "/home/anna/dev/grass/trunk1/dist.x86_64-unknown-
 linux-gnu/gui/wxpython/core/gcmd.py", line 701, in
 RunCommand

 stdout, stderr = map(DecodeString, ps.communicate())
   File "/home/anna/dev/grass/trunk1/dist.x86_64-unknown-
 linux-gnu/gui/wxpython/core/gcmd.py", line 76, in
 DecodeString

 return string.decode(_enc)
   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in
 decode

 return codecs.utf_8_decode(input, errors, True)
 UnicodeDecodeError
 :
 'utf8' codec can't decode byte 0xc4 in position 47: invalid
 continuation byte
 }}}

 The patch is probably trying to prevent from doing it.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1293#comment:13>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list