[GRASS-dev] Re: [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:59:54 EDT 2011


#1330: wxGUI: "UnicodeEncodeError: 'ascii' codec can't encode characters" in
pl_PL.UTF-8
----------------------+-----------------------------------------------------
 Reporter:  msieczka  |       Owner:  martinl            
     Type:  defect    |      Status:  assigned           
 Priority:  major     |   Milestone:  6.4.2              
Component:  wxGUI     |     Version:  svn-releasebranch64
 Keywords:  ascii     |    Platform:  Linux              
      Cpu:  All       |  
----------------------+-----------------------------------------------------

Comment(by msieczka):

 Replying to [comment:1 martinl]:
 > Please try out GRASS 6.5, should be working there.

 Doesn't work in 6.5 r45717 either:

 {{{
 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.5.svn/etc/wxpython/wxgui.py", line 918, in
 SaveToWorkspaceFile
     workspace.WriteWorkspaceFile(lmgr = self, file = tmpfile)
   File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/workspace.py",
 line 734, in __init__
     self.__writeLayer(mapTree, item)
   File "/usr/local/grass-6.5.svn/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)
 }}}

 > Changing milestone to 6.4.2.

 6.4.1 impossible?

 > Name of raster/vector contains only ASCII characters?

 Yes. The culprit seems to be the Polish word for "opacity" -
 "nieprzeźroczystość", which wxGUI has problem to deal with.

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



More information about the grass-dev mailing list