Просмотр исходного кода

wxGUI: use library function for decode of gisdbase string in location wizard (see https://trac.osgeo.org/grass/ticket/2885 and https://trac.osgeo.org/grass/changeset/70335)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70336 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 8 лет назад
Родитель
Сommit
38dc65919b
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      gui/wxpython/location_wizard/wizard.py

+ 2 - 1
gui/wxpython/location_wizard/wizard.py

@@ -57,6 +57,7 @@ from gui_core.wrap import SpinCtrl
 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 @@ class LocationWizard(wx.Object):
             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: