Procházet zdrojové kódy

fix typo in https://trac.osgeo.org/grass/changeset/54219

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54220 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa před 12 roky
rodič
revize
1af7dd2b6c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      gui/wxpython/core/gcmd.py

+ 2 - 2
gui/wxpython/core/gcmd.py

@@ -704,12 +704,12 @@ def RunCommand(prog, flags = "", overwrite = False, quiet = False, verbose = Fal
 def GetDefaultEncoding(forceUTF8 = False):
     """!Get default system encoding
     
-    @param forceUTF8 return UTF8 when encoding is not defined
+    @param forceUTF8 force 'UTF-8' if encoding is not defined
 
     @return system encoding (can be None)
     """
     enc = locale.getdefaultlocale()[1]
-    if forceUTF8 and (enc is None or enc != 'UTF8'):
+    if forceUTF8 and (enc is None or enc == 'UTF8'):
         return 'UTF-8'
     
     Debug.msg(1, "GetSystemEncoding(): %s" % enc)