[GRASS-dev] [GRASS GIS] #3666: wxGUI: Save to file in 3D mode fails with Unicode error

GRASS GIS trac at osgeo.org
Thu Sep 27 02:47:21 PDT 2018


#3666: wxGUI: Save to file in 3D mode fails with Unicode error
--------------------+-------------------------
 Reporter:  marisn  |      Owner:  grass-dev@…
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:
Component:  wxGUI   |    Version:  svn-trunk
 Keywords:          |        CPU:  Unspecified
 Platform:  Linux   |
--------------------+-------------------------
 On Ubuntu with self compiled trunk I was trying to save map display
 content to file in a 3D mode to folder with non-ascii path (en_US.UTF-8
 locale):
 {{{
 Traceback (most recent call last):
   File "/home/marisn/soft/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/mapdisp/frame.py", line 660, in SaveToFile

 width, height)
   File "/home/marisn/soft/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/nviz/mapwindow.py", line 2652, in
 SaveToFile

 self._display.SaveToFile(FileName, width, height, FileType)
   File "/home/marisn/soft/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/nviz/wxnviz.py", line 1855, in SaveToFile

 GS_write_tif(filename)
 ctypes
 .
 ArgumentError
 :
 argument 1: <type 'exceptions.UnicodeEncodeError'>: 'ascii'
 codec can't encode character u'\u012b' in position 28:
 ordinal not in range(128)
 }}}

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



More information about the grass-dev mailing list