[GRASS GIS] #3422: UnicodeDecodeError in metadata (r.info) call in wxGUI

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[GRASS GIS] #3422: UnicodeDecodeError in metadata (r.info) call in wxGUI

GRASS GIS
#3422: UnicodeDecodeError in metadata (r.info) call in wxGUI
-----------------------------+-------------------------
 Reporter:  mlennert         |      Owner:  grass-dev@…
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:  7.4.0
Component:  wxGUI            |    Version:  svn-trunk
 Keywords:  r.info encoding  |        CPU:  Unspecified
 Platform:  Unspecified      |
-----------------------------+-------------------------
 I have a map with the following r.info output on the command line:


 {{{
 > r.info map=liege_ucl@RW
 +----------------------------------------------------------------------------+
  | Map:      liege_ucl@RW                   Date: Mon Oct  9 12:12:23 2017
 |
  | Mapset:   RW                             Login of Creator: mlennert
 |
  | Location: Belgique31370
 |
  | DataBase: /data/GRASS/DATA7
 |
  | Title:    liege_ucl.tif
 |
  | Timestamp: none
 |
 |----------------------------------------------------------------------------|
  |
 |
  |   Type of Map:  raster               Number of Categories: 0
 |
  |   Data Type:    CELL
 |
  |   Rows:         6452
 |
  |   Columns:      8656
 |
  |   Total Cells:  55848512
 |
  |        Projection: Lambert Conformal Conic
 |
  |            N: 148834.59047566    S: 135976.34544505   Res: 1.99290841
 |
  |            E: 237057.88316472    W: 219807.26800896   Res: 1.99290841
 |
  |   Range of data:    min = 0  max = 55
 |
  |
 |
  |   Data Description:
 |
  |    generated by r.in.gdal
 |
  |
 |
  |   Comments:
 |
  |    r.in.gdal input="ULB/ANAGEO/Région Wallonne/ClassifUCL/Liege.tif" o\
 |
  |    utput="liege_ucl.tif" memory=300 offset=0 num_digits=0
 |
  |
 |
 +----------------------------------------------------------------------------+
 }}}

 Note the accents in the r.in.gdal file path. When I try to display the
 same info using the automatically generated r.info GUI, I get the
 following in the Command output tab:


 {{{
 +----------------------------------------------------------------------------+
  | Map:      liege_ucl@RW                   Date: Mon Oct  9 12:12:23 2017
 |
  | Mapset:   RW                             Login of Creator: mlennert
 |
  | Location: Belgique31370
 |
  | DataBase: /data/GRASS/DATA7
 |
  | Title:    liege_ucl.tif
 |
  | Timestamp: none
 |
 |----------------------------------------------------------------------------|
  |
 |
  |   Type of Map:  raster               Number of Categories: 0
 |
  |   Data Type:    CELL
 |
  |   Rows:         6452
 |
  |   Columns:      8656
 |
  |   Total Cells:  55848512
 |
  |        Projection: Lambert Conformal Conic
 |
  |            N: 148834.59047566    S: 135976.34544505   Res: 1.99290841
 |
  |            E: 237057.88316472    W: 219807.26800896   Res: 1.99290841
 |
  |   Range of data:    min = 0  max = 55
 |
  |
 |
  |   Data Description:
 |
  |    generated by r.in.gdal
 |
  |
 |
  |   Comments:
 |
  |    utput="liege_ucl.tif" memory=300 offset=0 num_digits=0
 |
  |
 |
 +----------------------------------------------------------------------------+
 }}}

 Note the first line of the r.in.gdal call missing. The following traceback
 is printed in the wxGUI Console output window:

 {{{
 Traceback (most recent call last):
   File
 "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/gui_core/goutput.py", line 472, in
 OnCmdOutput

 self.cmdOutput.AddStyledMessage(message, type)
   File
 "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/gui_core/goutput.py", line 771, in
 AddStyledMessage

 self.AddTextWrapped(message, wrap=None)
   File
 "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-
 linux-gnu/gui/wxpython/gui_core/goutput.py", line 722, in
 AddTextWrapped

 self.AddText(txt)
   File "/usr/lib/python2.7/dist-
 packages/wx-3.0-gtk2/wx/stc.py", line 2041, in AddText

 return _stc.StyledTextCtrl_AddText(*args, **kwargs)
 UnicodeDecodeError
 :
 'ascii' codec can't decode byte 0xc3 in position 35: ordinal
 not in range(128)
 }}}

 I get the same result with right-click->Metadata in the Layer Manager.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3422>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3422: UnicodeDecodeError in metadata (r.info) call in wxGUI

GRASS GIS
#3422: UnicodeDecodeError in metadata (r.info) call in wxGUI
--------------------------+-----------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  closed
  Priority:  normal       |  Milestone:  7.4.5
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:  fixed        |   Keywords:  r.info encoding
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-----------------------------
Changes (by annakrat):

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


Comment:

 Can't reproduce it, feel free to reopen.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3422#comment:6>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev