[GRASS-dev] [GRASS GIS] #2552: GRASS 7.0 RC1 wxGUI: fails to launch in Spanish locale (UnicodeEncodeError)

GRASS GIS trac at osgeo.org
Fri Jan 30 05:02:12 PST 2015


#2552: GRASS 7.0 RC1 wxGUI: fails to launch in Spanish locale (UnicodeEncodeError)
------------------------+---------------------------------------------------
 Reporter:  santipardo  |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  blocker     |   Milestone:  7.0.0                    
Component:  wxGUI       |     Version:  svn-releasebranch70      
 Keywords:  locale      |    Platform:  Linux                    
      Cpu:  x86-64      |  
------------------------+---------------------------------------------------

Comment(by glynn):

 Replying to [comment:2 annakrat]:
 > I encoded the string in r64335 to the encoding set during the startup. I
 am not sure if that solves the problem, needs testing.
 That change is bogus. The string should be a str (byte string), not
 unicode, so calling .encode() on it is meaningless. Reverted in r64364.

 The error appears to arise from r41856 passing unicode=True to
 gettext.install(), meaning that translated strings are returned as unicode
 values which then end up being converted to strings using the default
 encoding. Fixed in r64366.

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



More information about the grass-dev mailing list