#3666 closed defect (fixed)

wxGUI: Save to file in 3D mode fails with Unicode error

Reported by: marisn Owned by: grass-dev@…
Priority: normal Milestone: 7.8.0
Component: wxGUI Version: svn-trunk
Keywords: ctypes Cc:
CPU: Unspecified Platform: Linux

Description

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)

Change History (3)

comment:1 Changed 14 months ago by annakrat

Try r73466.

comment:2 Changed 14 months ago by martinl

Keywords: ctypes added
Milestone: 7.8.0

Seems that only trunk is affected. Milestone set.

comment:3 Changed 14 months ago by marisn

Resolution: fixed
Status: newclosed

Thank you, Anna. Works just fine.

Note: See TracTickets for help on using tickets.