[GRASS-dev] [GRASS GIS] #2885: wxGUI Location Creation Wizard: UnicodeEncoreError when GISDBASE has accents in path

GRASS GIS trac at osgeo.org
Mon Feb 1 08:20:33 PST 2016


#2885: wxGUI Location Creation Wizard: UnicodeEncoreError when GISDBASE has
accents in path
--------------------------------------+-------------------------
 Reporter:  mlennert                  |      Owner:  grass-dev@…
     Type:  defect                    |     Status:  new
 Priority:  normal                    |  Milestone:  7.1.0
Component:  wxGUI                     |    Version:  svn-trunk
 Keywords:  location wizard encoding  |        CPU:  Unspecified
 Platform:  Unspecified               |
--------------------------------------+-------------------------
 In trunk (but not int release70), testing with a grass database located in
 /home/mlennert/DonnéesGRASS, I get the following error when trying to
 create a new location with the location creation wizard. The error appears
 when I click on the 'Finish' button, and the location is not created.


 {{{
 Traceback (most recent call last):
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/gis_set.py", line 510, in OnWizard
     grassdatabase = self.tgisdbase.GetValue())
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/location_wizard/wizard.py", line 1918, in __init__
     msg = self.OnWizFinished()
   File "/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/location_wizard/wizard.py", line 2067, in OnWizFinished
     current_gdb = grass.gisenv()['GISDBASE'].decode(sys.stdin.encoding)
   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
     return codecs.utf_8_decode(input, errors, True)
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
 position 19: ordinal not in range(128)
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2885>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list