[GRASS-SVN] r36789 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 19 12:59:27 EDT 2009
Author: martinl
Date: 2009-04-19 12:59:27 -0400 (Sun, 19 Apr 2009)
New Revision: 36789
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
Attempt to fix trac #552 (add vector map layer in layer manager doesn't show any paramter window)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2009-04-19 16:06:00 UTC (rev 36788)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py 2009-04-19 16:59:27 UTC (rev 36789)
@@ -53,6 +53,7 @@
import os
import time
import copy
+import locale
### i18N
import gettext
@@ -1713,8 +1714,14 @@
# parse the interface decription
self.grass_task = grassTask()
handler = processTask(self.grass_task)
- xml.sax.parseString( getInterfaceDescription(cmd[0]), handler )
-
+ enc = locale.getdefaultlocale()[1]
+ if enc and enc.lower() not in ("utf8", "utf-8"):
+ xml.sax.parseString(getInterfaceDescription(cmd[0]).decode(enc).encode("utf-8"),
+ handler)
+ else:
+ xml.sax.parseString(getInterfaceDescription(cmd[0]),
+ handler)
+
# if layer parameters previously set, re-insert them into dialog
if completed is not None:
if 'params' in dcmd_params:
More information about the grass-commit
mailing list