[GRASS-SVN] r54220 - grass/trunk/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 6 04:56:42 PST 2012


Author: martinl
Date: 2012-12-06 04:56:41 -0800 (Thu, 06 Dec 2012)
New Revision: 54220

Modified:
   grass/trunk/gui/wxpython/core/gcmd.py
Log:
fix typo in r54219


Modified: grass/trunk/gui/wxpython/core/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/core/gcmd.py	2012-12-06 12:52:21 UTC (rev 54219)
+++ grass/trunk/gui/wxpython/core/gcmd.py	2012-12-06 12:56:41 UTC (rev 54220)
@@ -704,12 +704,12 @@
 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)



More information about the grass-commit mailing list