فهرست منبع

Read GISENV in stdin encoding and convert to unicode (fixes https://trac.osgeo.org/grass/ticket/2205)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64044 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 10 سال پیش
والد
کامیت
246cdc690c
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      gui/wxpython/location_wizard/wizard.py

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

@@ -32,6 +32,7 @@ This program is free software under the GNU General Public License
 @author Hamish Bowman (planetary ellipsoids)
 """
 import os
+import sys
 import locale
 
 import wx
@@ -2060,7 +2061,7 @@ class LocationWizard(wx.Object):
             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: