[GRASS-dev] Re: [GRASS GIS] #995: WxGUI startup screen fails if GISDBASE path contains non-latin characters

GRASS GIS trac at osgeo.org
Fri Mar 12 07:28:52 EST 2010


#995: WxGUI startup screen fails if GISDBASE path contains non-latin characters
------------------------------+---------------------------------------------
  Reporter:  marisn           |       Owner:  martinl            
      Type:  defect           |      Status:  assigned           
  Priority:  blocker          |   Milestone:  6.4.0              
 Component:  wxGUI            |     Version:  svn-releasebranch64
Resolution:                   |    Keywords:  wingrass, i18n     
  Platform:  MSWindows Vista  |         Cpu:  Unspecified        
------------------------------+---------------------------------------------
Comment (by marisn):

 I will test on windows in some days. Seems fine on Linux, still it's
 impossible to create location within such GISDBASE with location wizard.
 If location exists, it's possible to use it.

 {{{
 Traceback (most recent call last):
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gui_modules/location_wizard.py", line 1712, in
 OnEnterPage
     self.ldatabase.SetLabel(str(database))
 UnicodeEncodeError: 'ascii' codec can't encode character u'\u0160' in
 position 23: ordinal not in range(128)
 Traceback (most recent call last):
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gis_set.py", line 412, in OnWizard
     grassdatabase = self.tgisdbase.GetValue())
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gui_modules/location_wizard.py", line 1855, in __init__
     msg = self.OnWizFinished()
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gui_modules/location_wizard.py", line 2013, in
 OnWizFinished
     set='GISDBASE=%s' % database)
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gui_modules/gcmd.py", line 596, in RunCommand
     ps = grass.start_command(prog, flags, overwrite, quiet, verbose,
 **kwargs)
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/script/core.py", line 143, in start_command
     args = make_command(prog, flags, overwrite, quiet, verbose, **options)
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/script/core.py", line 106, in make_command
     args.append("%s=%s" % (opt, _make_val(val)))
   File "/home/maris/soft/grass_64/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/script/core.py", line 73, in _make_val
     return str(val)
 UnicodeEncodeError: 'ascii' codec can't encode character u'\u0160' in
 position 32: ordinal not in range(128)
 }}}

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


More information about the grass-dev mailing list