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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 10 06:10:06 PST 2015


Author: marisn
Date: 2015-01-10 06:10:06 -0800 (Sat, 10 Jan 2015)
New Revision: 64044

Modified:
   grass/trunk/gui/wxpython/location_wizard/wizard.py
Log:
Read GISENV in stdin encoding and convert to unicode (fixes #2205)

Modified: grass/trunk/gui/wxpython/location_wizard/wizard.py
===================================================================
--- grass/trunk/gui/wxpython/location_wizard/wizard.py	2015-01-10 10:53:44 UTC (rev 64043)
+++ grass/trunk/gui/wxpython/location_wizard/wizard.py	2015-01-10 14:10:06 UTC (rev 64044)
@@ -32,6 +32,7 @@
 @author Hamish Bowman (planetary ellipsoids)
 """
 import os
+import sys
 import locale
 
 import wx
@@ -2060,7 +2061,7 @@
             return None
         
         # current GISDbase or a new one?
-        current_gdb = grass.gisenv()['GISDBASE']
+        current_gdb = grass.gisenv()['GISDBASE'].decode(sys.stdin.encoding)
         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