[GRASS-dev] [GRASS GIS] #2800: wxGUI modeler: encoding issue

#2800: wxGUI modeler: encoding issue
------------------------------+-------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: wxGUI | Version: svn-trunk
Keywords: modeler encoding | CPU: Unspecified
Platform: Unspecified |
------------------------------+-------------------------
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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2800&gt;
GRASS GIS <https://grass.osgeo.org>

#2800: wxGUI modeler: encoding issue
--------------------------+------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: modeler encoding
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------
Changes (by martinl):

* milestone: => 7.0.3

Comment:

Please set info about your locales...

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2800#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2800: wxGUI modeler: encoding issue
--------------------------+------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: modeler encoding
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------

Comment (by mlennert):

Replying to [comment:1 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=
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2800#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2800: wxGUI modeler: encoding issue
--------------------------+------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: modeler encoding
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------

Comment (by neteler):

To test:
{{{
  export LANG=fr_BE.utf8
  export LANGUAGE=fr_BE.utf8
  export LC_MESSAGES=fr_BE.utf8
  grass70
  # ... modeller
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2800#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#2800: wxGUI modeler: encoding issue
--------------------------+------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.3
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: modeler encoding
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------
Changes (by mlennert):

* status: new => closed
* resolution: => fixed

Comment:

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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2800#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>