[GRASS-dev] Re: [GRASS GIS] #1004: WxGUI CMD fails if command contains non-latin letters

GRASS GIS trac at osgeo.org
Sat Mar 5 06:20:11 EST 2011


#1004: WxGUI CMD fails if command contains non-latin letters
-------------------------------+--------------------------------------------
 Reporter:  marisn             |       Owner:  martinl            
     Type:  defect             |      Status:  assigned           
 Priority:  major              |   Milestone:  6.4.0              
Component:  wxGUI              |     Version:  svn-releasebranch64
 Keywords:  unicode, wingrass  |    Platform:  MSWindows Vista    
      Cpu:  x86-32             |  
-------------------------------+--------------------------------------------

Comment(by marisn):

 Still fails.

 String for testing:
 {{{
 db.out.ogr input=bugsites dsn="C:\Users\tests\Documents\šaursliežu
 dzelzceļš\šaurā datubāze"
 }}}


 WinGRASS-6.5.SVN-r45558-1
 {{{
 Traceback (most recent call last):
   File "C:\Program Files\GRASS
 6.5.SVN\etc\wxpython\gui_modules\prompt.py", line 1064, in
 OnKeyPressed

 cmd = map(utils.DecodeString, cmd)
   File "c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-
 mingw32/etc/wxpython/gui_modules/utils.py", line 655, in
 DecodeString
   File "C:\Program Files\GRASS
 6.5.SVN\Python25\lib\encodings\utf_8.py", line 16, in decode

 return codecs.utf_8_decode(input, errors, True)
 UnicodeDecodeError
 :
 'utf8' codec can't decode bytes in position 29-32: invalid
 data

 }}}

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



More information about the grass-dev mailing list