[GRASS-SVN] r41462 - grass/branches/releasebranch_6_4/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 16 12:29:58 EDT 2010


Author: martinl
Date: 2010-03-16 12:29:58 -0400 (Tue, 16 Mar 2010)
New Revision: 41462

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
Log:
wxGUI: don't fail if location contains non-ascii characters


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py	2010-03-16 16:23:25 UTC (rev 41461)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py	2010-03-16 16:29:58 UTC (rev 41462)
@@ -547,7 +547,7 @@
             for location in glob.glob(os.path.join(dbase, "*")):
                 try:
                     if os.path.join(location, "PERMANENT") in glob.glob(os.path.join(location, "*")):
-                        self.listOfLocations.append(os.path.basename(location))
+                        self.listOfLocations.append(utils.EncodeString(os.path.basename(location)))
                 except:
                     pass
         except UnicodeError:



More information about the grass-commit mailing list