Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3219 closed defect (fixed)

wxnviz: encoding error when exporting image file with accent in name

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.0.6
Component: wxGUI Version: unspecified
Keywords: 3d image encoding Cc:
CPU: Unspecified Platform: Unspecified

Description

Trying to export a file named '3d_avec_décorations' from the 3D view in the wxDisplay, I get:

Traceback (most recent call last):
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-
linux-gnu/gui/wxpython/mapdisp/frame.py", line 664, in
SaveToFile

width, height)
  File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-
linux-gnu/gui/wxpython/nviz/mapwindow.py", line 2650, in
SaveToFile

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

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

Tested both in 7.0.5 and 7.3.

Change History (4)

comment:1 by annakrat, 7 years ago

Resolution: fixed
Status: newclosed

In 70029:

wxGUI/nviz: fix #3219

comment:2 by martinl, 7 years ago

Resolution: fixed
Status: closedreopened

Candidate for backport?

comment:3 by annakrat, 7 years ago

Resolution: fixed
Status: reopenedclosed

In 70030:

wxGUI/nviz: fix #3219 (merge from trunk, r70029)

comment:4 by annakrat, 7 years ago

In 70031:

wxGUI/nviz: fix #3219 (merge from trunk, r70029)

Note: See TracTickets for help on using tickets.