Explorar o código

wxGUI: comment-out dialog encoding

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40191 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=15) %!d(string=hai) anos
pai
achega
820d81f840
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      gui/wxpython/gui_modules/menuform.py

+ 6 - 6
gui/wxpython/gui_modules/menuform.py

@@ -1898,12 +1898,12 @@ class GUI:
 
 
         @param cmd command to be parsed (given as list)
         @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()
         return processTask(tree).GetTask()
     
     
     def ParseCommand(self, cmd, gmpath=None, completed=None, parentframe=None,
     def ParseCommand(self, cmd, gmpath=None, completed=None, parentframe=None,