[GRASS-dev] Re: [GRASS GIS] #1488: v.in.dxf wrapper not working

GRASS GIS trac at osgeo.org
Sun Nov 13 16:17:19 EST 2011

#1488: v.in.dxf wrapper not working
 Reporter:  cmbarton     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:  v.in.dxf     |    Platform:  Unspecified              
      Cpu:  Unspecified  |  

Comment(by glynn):

 Replying to [comment:12 cmbarton]:
 > Changing !EncodeString to use replace does not work. There is still the
 same error reported above.

 That's because utils.!GetValidLayerName() just uses str() rather than
 !EncodeString() or similar. str() uses the default encoding (not the
 locale's encoding), which is usually ASCII. And (AFAICT) it uses the
 equivalent of errors='strict', so that needs to be fixed regardless of how
 !DecodeString() behaves. Otherwise, you'll get a similar error for any
 non-ASCII character.

Ticket URL: <http://trac.osgeo.org/grass/ticket/1488#comment:13>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list