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

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#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
Resolution: | Keywords:
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------

Comment (by annakrat):

Try r73466.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3666#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3666: wxGUI: Save to file in 3D mode fails with Unicode error
--------------------------+-------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: ctypes
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by martinl):

* keywords: => ctypes
* milestone: => 7.8.0

Comment:

Seems that only trunk is affected. Milestone set.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3666#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3666: wxGUI: Save to file in 3D mode fails with Unicode error
--------------------------+-------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: ctypes
       CPU: Unspecified | Platform: Linux
--------------------------+-------------------------
Changes (by marisn):

* status: new => closed
* resolution: => fixed

Comment:

Thank you, Anna. Works just fine.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3666#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>