Opened 8 years ago

Closed 8 years ago

#2800 closed defect (fixed)

wxGUI modeler: encoding issue

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.0.3
Component: wxGUI Version: svn-trunk
Keywords: modeler encoding Cc:
CPU: Unspecified Platform: Unspecified

Description

Trying to add any command to the modeler, I get:

Traceback (most recent call last):
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/gui/wxpython/gmodeler/frame.py", line
692, in OnAddAction

self.itemPanel.Update()
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/gui/wxpython/gmodeler/frame.py", line
1623, in Update

self.list.OnReload(None)
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line
906, in OnReload

self.Populate(self.frame.GetModel().GetItems(objType=ModelAc
tion))
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line
842, in Populate

action.GetLog()]
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/gui/wxpython/gmodeler/model.py", line
1100, in GetLog

ignoreDefault = False)
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/etc/python/grass/script/task.py", line
243, in get_cmd

errList = self.get_cmd_error()
  File
"/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64
-unknown-linux-gnu/etc/python/grass/script/task.py", line
203, in get_cmd_error

{'name': p['name'], 'desc': desc})
UnicodeDecodeError
:
'ascii' codec can't decode byte 0xc3 in position 8: ordinal
not in range(128)

I have to then redraw the model canvas to see a white rectangle with the command name, but clicking on that rectangle provokes the same error and no other reaction.

I have this issue only in trung, not in 7.0.1.

Change History (4)

comment:1 by martinl, 8 years ago

Milestone: 7.0.3

Please set info about your locales...

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

Replying to martinl:

Please set info about your locales...

G 7.1.svn (nc_spm_08/user1) ~> 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=

comment:3 by neteler, 8 years ago

To test:

 export LANG=fr_BE.utf8
 export LANGUAGE=fr_BE.utf8
 export LC_MESSAGES=fr_BE.utf8
 grass70
 # ... modeller

comment:4 by mlennert, 8 years ago

Resolution: fixed
Status: newclosed

After the recent fixes to similar encoding issues, this seems to be fixed as well. Tried in trunk and release70 and its works in both.

Closing.

Note: See TracTickets for help on using tickets.