Browse Source

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 12 years ago
parent
commit
1af7dd2b6c
1 changed files with 2 additions and 2 deletions
  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):
 def GetDefaultEncoding(forceUTF8 = False):
     """!Get default system encoding
     """!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)
     @return system encoding (can be None)
     """
     """
     enc = locale.getdefaultlocale()[1]
     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'
         return 'UTF-8'
     
     
     Debug.msg(1, "GetSystemEncoding(): %s" % enc)
     Debug.msg(1, "GetSystemEncoding(): %s" % enc)