[GRASS-dev] [GRASS GIS] #1972: v.in.ogr wrapper fails with UnicodeEncodeError

GRASS GIS trac at osgeo.org
Fri May 10 01:56:46 PDT 2013


#1972: v.in.ogr wrapper fails with UnicodeEncodeError
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  major        |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Steps to reproduce: use v.in.ogr new wrapper to import a shapefile
 selected with "browse" button.
 {{{
 Traceback (most recent call last):
   File "/usr/lib64/python2.7/site-
 packages/wx-2.9.4-gtk2/wx/lib/filebrowsebutton.py", line
 140, in OnChanged

 self.changeCallback(evt)
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_core/gselect.py", line 1686,
 in OnSetDsn

 self._reloadLayers()
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_core/gselect.py", line 1743,
 in _reloadLayers

 self.parent.list.LoadData(data)
   File "/home/maris/soft/grass_trunk/dist.x86_64-unknown-
 linux-gnu/etc/gui/wxpython/gui_core/dialogs.py", line 2038,
 in LoadData

 self.SetStringItem(index, i, "%s" % str(item[i]))
 UnicodeEncodeError
 :
 'ascii' codec can't encode character u'\u0101' in position
 1: ordinal not in range(128)
 }}}

 GRASS trunk r56142

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



More information about the grass-dev mailing list