[GRASS-SVN] r40553 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 19 06:46:59 EST 2010


Author: martinl
Date: 2010-01-19 06:46:59 -0500 (Tue, 19 Jan 2010)
New Revision: 40553

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: don't decode module desc

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2010-01-19 11:14:32 UTC (rev 40552)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2010-01-19 11:46:59 UTC (rev 40553)
@@ -1815,13 +1815,8 @@
         # parse the interface decription
         self.grass_task = grassTask()
         handler = processTask(self.grass_task)
-        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)
+        xml.sax.parseString(getInterfaceDescription(cmd[0]),
+                            handler)
         
         # if layer parameters previously set, re-insert them into dialog
         if completed is not None:



More information about the grass-commit mailing list