[GRASS-dev] [GRASS GIS] #3275: wxGUI: encoding error when saving workspace

GRASS GIS trac at osgeo.org
Mon Feb 6 12:55:46 PST 2017


#3275: wxGUI: encoding error when saving workspace
--------------------------------------+-------------------------
 Reporter:  mlennert                  |      Owner:  grass-dev@…
     Type:  defect                    |     Status:  new
 Priority:  normal                    |  Milestone:  7.2.1
Component:  wxGUI                     |    Version:  svn-trunk
 Keywords:  wxGUI workspace encoding  |        CPU:  Unspecified
 Platform:  Unspecified               |
--------------------------------------+-------------------------
 Trying to save my workspace, I get the following error:

 {{{
 Échec d'écriture des paramètres de l'espace de travail courant.

 Raison: 'ascii' codec can't encode character u'\u20ac' in position 34:
 ordinal not in range(128)

 Traceback (most recent call last):
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/lmgr/frame.py", line 1634, in SaveToWorkspaceFile
     WriteWorkspaceFile(lmgr=self, file=tmpfile)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/core/workspace.py", line 906, in __init__
     self.__writeOverlay(mapdisp)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/core/workspace.py", line 1522, in __writeOverlay
     self.__writeOverlayParams(disp_size, overlay.cmd, overlay.coords)
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/core/workspace.py", line 1570, in __writeOverlayParams
     self.file.write('%s<value>%s</value>\n' % (' ' * self.indent,
 prm.split("=", 1)[1]))
 UnicodeEncodeError: 'ascii' codec can't encode character u'\u20ac' in
 position 34: ordinal not in range(128)
 }}}

 The weird part is that I don't even know where I would have a non-ascii
 character. Maybe some translation has happened of parameters for the
 workspace parameter file ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3275>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list