[GRASS-dev] [GRASS GIS] #3423: UnicodeDecodeError in r.category in wxGUI when category labels contain special characters

GRASS GIS trac at osgeo.org
Sun Nov 12 08:48:18 PST 2017


#3423: UnicodeDecodeError in r.category in wxGUI when category labels contain
special characters
--------------------------+---------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.4.0
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:  r.category encoding
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by marisn):

 Replying to [comment:3 mlennert]:
 > So the question becomes: should choice of the language in which the GUI
 appears influence the locale settings in this manner ? If you say yes,
 than we can close this.

 Yes, it should. There are messages also provided by non-GUI apps or GUI
 apps can be started from CLI thus bypassing wxgui language switching
 mechanisms.

 Here is a test case triggering a failure without switching GUI language
 (NC basic; sorry for my Russian):

 {{{
 g.copy rast=landuse,landuse
 r.category map=landuse separator=":" rules=- << EOF
 1:развитая
 2:сельское хозяйство
 3:травянистый
 4:кустарниковые
 5:лесной
 6:водный
 7:осадок
 EOF
 r.category map=landuse
 }}}

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



More information about the grass-dev mailing list