[GRASS-dev] [GRASS GIS] #3392: t.register: encoding error

GRASS GIS trac at osgeo.org
Mon Aug 28 13:36:59 PDT 2017


#3392: t.register: encoding error
--------------------------+---------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.2.2
 Component:  Temporal     |    Version:  svn-trunk
Resolution:               |   Keywords:  t.register encoding
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by annakrat):

 Replying to [comment:30 glynn]:
 > Replying to [comment:12 annakrat]:
 > > The problem mostly comes from calling gisenv function from
 script.utils which returns unicode.
 > That shouldn't be the case. Nothing in the grass.script module should
 ever return unicode. Because if it does, anything which isn't wxgui will
 just have to turn it back into bytes again. Which is more error-prone than
 just leaving it as bytes in the first place.

 Since r65787 script.gisenv() returns unicode, because of Python3 support
 as the commit message says. We need to have a discussion about Python3 and
 what should be the strategy to make the code compatible.

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



More information about the grass-dev mailing list