#2260: wxGUI: encoding error in French locale when trying to delete layer with
opacity level set
------------------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: wxGUI opacity encoding | Platform: Unspecified
Cpu: Unspecified |
------------------------------------+---------------------------------------
{{{
> 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)
}}}
#2260: wxGUI: encoding error in French locale when trying to delete layer with
opacity level set
--------------------------+-------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: closed
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: wxGUI opacity encoding
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by mlennert):
* status: new => closed
* resolution: => fixed
Comment:
Replying to [comment:1 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 ?