Forráskód Böngészése

wxGUI: comment-out dialog encoding

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40191 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 éve
szülő
commit
820d81f840
1 módosított fájl, 6 hozzáadás és 6 törlés
  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)
         """
-        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,