[GRASS-dev] [GRASS GIS] #1330: wxGUI: "UnicodeEncodeError: 'ascii' codec can't encode characters" in pl_PL.UTF-8

GRASS GIS trac at osgeo.org
Sun Mar 20 07:45:40 EDT 2011


#1330: wxGUI: "UnicodeEncodeError: 'ascii' codec can't encode characters" in
pl_PL.UTF-8
----------------------+-----------------------------------------------------
 Reporter:  msieczka  |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  major     |   Milestone:  6.4.1                    
Component:  wxGUI     |     Version:  svn-releasebranch64      
 Keywords:            |    Platform:  Linux                    
      Cpu:  All       |  
----------------------+-----------------------------------------------------
 Debian squeeze amd64, releasebranch_6_4 r45717.

 1. Start wxGUI in pl_PL.UTF-8.
 2. Add any raster or vector layer.
 3. Change it's opacity level.

 Try to save a project - error:

 {{{
 Zapis bieżących ustawień do pliku projektu nie powiódł się.

 Powód: 'ascii' codec can't encode characters in position 66-67: ordinal
 not in range(128)

 Traceback (most recent call last):
   File "/usr/local/grass-6.4.1svn/etc/wxpython/wxgui.py", line 844, in
 SaveToWorkspaceFile
     workspace.WriteWorkspaceFile(lmgr = self, file = tmpfile)
   File "/usr/local/grass-6.4.1svn/etc/wxpython/gui_modules/workspace.py",
 line 734, in __init__
     self.__writeLayer(mapTree, item)
   File "/usr/local/grass-6.4.1svn/etc/wxpython/gui_modules/workspace.py",
 line 781, in __writeLayer
     (' ' * self.indent, type, name, checked, opacity));
 UnicodeEncodeError: 'ascii' codec can't encode characters in position
 66-67: ordinal not in range(128)
 }}}

 Can't also remove the problematic layer from the list - similar error:

 {{{
 Traceback (most recent call last):
   File "/usr/local/grass-6.4.1svn/etc/wxpython/wxgui.py",
 line 1395, in OnDeleteLayer

 name = str(self.curr_page.maptree.GetItemText(item))
 UnicodeEncodeError
 :
 'ascii' codec can't encode characters in position 31-32:
 ordinal not in range(128)
 }}}

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



More information about the grass-dev mailing list