[GRASS-SVN] r70336 - grass/trunk/gui/wxpython/location_wizard

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 10 19:27:04 PST 2017


Author: wenzeslaus
Date: 2017-01-10 19:27:04 -0800 (Tue, 10 Jan 2017)
New Revision: 70336

Modified:
   grass/trunk/gui/wxpython/location_wizard/wizard.py
Log:
wxGUI: use library function for decode of gisdbase string in location wizard (see #2885 and r70335)

Modified: grass/trunk/gui/wxpython/location_wizard/wizard.py
===================================================================
--- grass/trunk/gui/wxpython/location_wizard/wizard.py	2017-01-11 03:23:11 UTC (rev 70335)
+++ grass/trunk/gui/wxpython/location_wizard/wizard.py	2017-01-11 03:27:04 UTC (rev 70336)
@@ -57,6 +57,7 @@
 from location_wizard.base import BaseClass
 from location_wizard.dialogs import SelectTransformDialog
 
+from grass.script import decode
 from grass.script import core as grass
 from grass.exceptions import OpenError
 
@@ -2560,7 +2561,7 @@
             return None
 
         # current GISDbase or a new one?
-        current_gdb = grass.gisenv()['GISDBASE'].decode(sys.stdin.encoding)
+        current_gdb = decode(grass.gisenv()['GISDBASE'])
         if current_gdb != database:
             # change to new GISDbase or create new one
             if os.path.isdir(database) != True:



More information about the grass-commit mailing list