[GRASS-SVN] r40191 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 2 09:31:38 EST 2010


Author: martinl
Date: 2010-01-02 09:31:37 -0500 (Sat, 02 Jan 2010)
New Revision: 40191

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: comment-out dialog encoding


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-01-02 14:18:48 UTC (rev 40190)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2010-01-02 14:31:37 UTC (rev 40191)
@@ -1898,12 +1898,12 @@
 
         @param cmd command to be parsed (given as list)
         """
-        enc = locale.getdefaultlocale()[1]
-        if enc and enc.lower() not in ("utf8", "utf-8"):
-            tree = etree.fromstring(getInterfaceDescription(cmd[0]).decode(enc).encode("utf-8"))
-        else:
-            tree = etree.fromstring(getInterfaceDescription(cmd[0]))
-            
+        # enc = locale.getdefaultlocale()[1]
+        # if enc and enc.lower() not in ("utf8", "utf-8"):
+        #     tree = etree.fromstring(getInterfaceDescription(cmd[0]).decode(enc).encode("utf-8"))
+        # else:
+        tree = etree.fromstring(getInterfaceDescription(cmd[0]))
+        
         return processTask(tree).GetTask()
     
     def ParseCommand(self, cmd, gmpath=None, completed=None, parentframe=None,



More information about the grass-commit mailing list