[GRASS-SVN] r41461 - grass/branches/releasebranch_6_4/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 16 12:23:25 EDT 2010
Author: martinl
Date: 2010-03-16 12:23:25 -0400 (Tue, 16 Mar 2010)
New Revision: 41461
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
Log:
wxGUI: don't fail if mapset 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:18:35 UTC (rev 41460)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py 2010-03-16 16:23:25 UTC (rev 41461)
@@ -579,7 +579,7 @@
if os.path.isdir(mapset) and \
os.path.isfile(os.path.join(self.gisdbase, location, mapset, "WIND")) and \
os.path.basename(mapset) != 'PERMANENT':
- self.listOfMapsets.append(os.path.basename(mapset))
+ self.listOfMapsets.append(utils.EncodeString(os.path.basename(mapset)))
utils.ListSortLower(self.listOfMapsets)
self.listOfMapsets.insert(0, 'PERMANENT')
More information about the grass-commit
mailing list