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

GRASS GIS trac at osgeo.org
Sat Nov 12 07:26:05 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:5 glynn]:

 > In general, GRASS doesn't care about encodings; it just deals with
 bytes. Unfortunately, this isn't something which can readily be fixed.

 I should have mentioned that while it can't actually be "fixed", it can
 fail less hard. The str.decode() method accepts an optional second
 argument, "errors", which can be "strict" (raise an exception), "replace"
 (replace unconvertible sequences with U+FFFD) or ignore (silently discard
 unconvertible sequences).

 The default is "strict". utils.!DecodeString should probably use one of
 the others, particularly if the output is just text which is going to be
 shown to the user. "strict" should only be used in situations where an
 error is preferable to an "approximate" value.

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

More information about the grass-dev mailing list