Opened 10 years ago

Closed 10 years ago

#2260 closed defect (fixed)

wxGUI: encoding error in French locale when trying to delete layer with opacity level set

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: wxGUI Version: unspecified
Keywords: wxGUI opacity encoding Cc:
CPU: Unspecified Platform: Unspecified

Description

> locale
LANG=fr_BE
LANGUAGE=fr_BE
LC_CTYPE=fr_BE.UTF-8
LC_NUMERIC=C
LC_TIME=fr_BE.UTF-8
LC_COLLATE=fr_BE.UTF-8
LC_MONETARY=fr_BE.UTF-8
LC_MESSAGES=fr_BE.UTF-8
LC_PAPER=fr_BE.UTF-8
LC_NAME=fr_BE.UTF-8
LC_ADDRESS=fr_BE.UTF-8
LC_TELEPHONE=fr_BE.UTF-8
LC_MEASUREMENT=fr_BE.UTF-8
LC_IDENTIFICATION=fr_BE.UTF-8
LC_ALL=
  • Add a layer.
  • Set its opacity level.
  • Try to delete the layer from the layer manager:
Traceback (most recent call last):
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/etc/gui/wxpython/lmgr/frame.py", line
2050, in OnDeleteLayer

name = str(self.GetLayerTree().GetItemText(item))
UnicodeEncodeError
:
'ascii' codec can't encode character u'\xe9' in position 19:
ordinal not in range(128)

Bug present in all branches.

Change History (2)

comment:1 by annakrat, 10 years ago

Please try r59906 in trunk and following commits in branches.

in reply to:  1 comment:2 by mlennert, 10 years ago

Resolution: fixed
Status: newclosed

Replying to annakrat:

Please try r59906 in trunk and following commits in branches.

Tested in trunk and grass64release. Works great now. Closing.

It might be a good idea to add some of the basic rules concerning encoding and translation handling into SUBMITTING_PYTHON or SUBMITTING_WXGUI in order to archive our experience ?

Moritz

Note: See TracTickets for help on using tickets.