Opened 6 years ago

Closed 6 years ago

#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 by annakrat, 6 years ago

Try r73466.

comment:2 by martinl, 6 years ago

Keywords: ctypes added
Milestone: 7.8.0

Seems that only trunk is affected. Milestone set.

comment:3 by marisn, 6 years ago

Resolution: fixed
Status: newclosed

Thank you, Anna. Works just fine.

Note: See TracTickets for help on using tickets.