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

GRASS GIS trac at osgeo.org
Sun Mar 14 12:01:29 EDT 2010


#1004: WxGUI CMD fails if command contains non-latin letters
-----------------------------+----------------------------------------------
 Reporter:  marisn           |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect           |      Status:  new                      
 Priority:  major            |   Milestone:  6.4.0                    
Component:  wxGUI            |     Version:  svn-releasebranch64      
 Keywords:  wxgui, wingrass  |    Platform:  MSWindows Vista          
      Cpu:  x86-32           |  
-----------------------------+----------------------------------------------
 If I enter some command in WxGUI CMD prompt that contains non-latin
 letters, I get ugly Python error:

 {{{
 Traceback (most recent call last):
   File "C:/Program
 Files/GRASS-64-SVN/etc/wxpython/wxgui.py", line 462, in
 OnRunCmd

 cmd = shlex.split(str(cmdString))
 UnicodeEncodeError
 :
 'ascii' codec can't encode character u'\u0160' in position
 55: ordinal not in range(128)
 }}}

 Tested on WinGRASS WinGRASS-6.4.SVN-r41428-1 running Vista

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


More information about the grass-dev mailing list