[GRASS-dev] [GRASS GIS] #3405: encoding issue when launching modules

GRASS GIS trac at osgeo.org
Thu Aug 24 06:50:47 PDT 2017


#3405: encoding issue when launching modules
--------------------------+---------------------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.4.0
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:  g.search.modules encoding
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------------

Comment (by mlennert):

 Replying to [comment:6 mlennert]:
 > Actually, when type is 'str' it is recognized as unicode:
 >
 >
 > {{{
 >     print type(string)
 >     print isinstance(string, unicode)
 > }}}
 >
 > gives
 >
 > {{{
 > <type 'str'>
 > True
 > <type 'str'>
 > True
 > <type 'unicode'>
 > False
 > }}}
 >
 >

 This is not the case on my office machine, where I get:


 {{{
 <type 'str'>
 False
 <type 'str'>
 False
 <type 'unicode'>
 True
 }}}

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



More information about the grass-dev mailing list