[GRASS-dev] [GRASS GIS] #2120: wxgui: encoding errors

GRASS GIS trac at osgeo.org
Tue May 26 06:11:53 PDT 2015


#2120: wxgui: encoding errors
-----------------------+-----------------------------
  Reporter:  mlennert  |      Owner:  grass-dev@…
      Type:  defect    |     Status:  new
  Priority:  major     |  Milestone:  7.0.1
 Component:  wxGUI     |    Version:  7.0.0
Resolution:            |   Keywords:  locale encoding
       CPU:  All       |   Platform:  All
-----------------------+-----------------------------

Comment (by mlennert):

 I know that this will probably not get fixed in the grass6 branch, but in
 view of the upcoming release of 6.4.5, I just wanted to note that this
 problem still exists. When I create a new map with any command (e.g.
 v.surf.idw, v.net, ...) and this new map is then automatically displayed,
 I get the following type of error message in the gui console:


 {{{
 v.surf.idw --overwrite input=elev_lid792_randpts at PERMANENT output=elev
 column=value

 Traceback (most recent call last):
   File
 "/data/home/mlennert/SRC/GRASS/grass-6.4.5RC1/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/gui_core/goutput.py", line
 759, in OnCmdOutput

 self.cmdOutput.AddTextWrapped(message, wrap = None)
   File
 "/data/home/mlennert/SRC/GRASS/grass-6.4.5RC1/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/gui_core/goutput.py", line
 1238, in AddTextWrapped

 txt = EncodeString(txt)
   File
 "/data/home/mlennert/SRC/GRASS/grass-6.4.5RC1/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/core/gcmd.py", line 103, in
 EncodeString

 return string.encode(enc)
 UnicodeDecodeError
 :
 'ascii' codec can't decode byte 0xe9 in position 22: ordinal
 not in range(128)

 v.net op=connect

 Traceback (most recent call last):
   File
 "/data/home/mlennert/SRC/GRASS/grass-6.4.5RC1/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/gui_core/goutput.py", line
 759, in OnCmdOutput

 self.cmdOutput.AddTextWrapped(message, wrap = None)
   File
 "/data/home/mlennert/SRC/GRASS/grass-6.4.5RC1/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/gui_core/goutput.py", line
 1238, in AddTextWrapped

 txt = EncodeString(txt)
   File
 "/data/home/mlennert/SRC/GRASS/grass-6.4.5RC1/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/core/gcmd.py", line 103, in
 EncodeString

 return string.encode(enc)
 UnicodeDecodeError
 :
 'ascii' codec can't decode byte 0xef in position 16: ordinal
 not in range(128)
 }}}


 All this in a French locale setting:


 {{{
 > locale
 LANG=fr_BE.utf8
 LANGUAGE=fr_BE.utf8
 LC_CTYPE="fr_BE.utf8"
 LC_NUMERIC="fr_BE.utf8"
 LC_TIME="fr_BE.utf8"
 LC_COLLATE="fr_BE.utf8"
 LC_MONETARY="fr_BE.utf8"
 LC_MESSAGES="fr_BE.utf8"
 LC_PAPER="fr_BE.utf8"
 LC_NAME="fr_BE.utf8"
 LC_ADDRESS="fr_BE.utf8"
 LC_TELEPHONE="fr_BE.utf8"
 LC_MEASUREMENT="fr_BE.utf8"
 LC_IDENTIFICATION="fr_BE.utf8"
 LC_ALL=
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2120#comment:14>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list