소스 검색

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 년 전
부모
커밋
1af7dd2b6c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)