[GRASS-SVN] r41309 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 6 13:33:36 EST 2010


Author: martinl
Date: 2010-03-06 13:33:36 -0500 (Sat, 06 Mar 2010)
New Revision: 41309

Modified:
   grass/trunk/gui/wxpython/gui_modules/gcmd.py
Log:
wxGUI: fix Windows locale problem
(merge r41308 from relbr64)


Modified: grass/trunk/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcmd.py	2010-03-06 18:27:14 UTC (rev 41308)
+++ grass/trunk/gui/wxpython/gui_modules/gcmd.py	2010-03-06 18:33:36 UTC (rev 41309)
@@ -35,6 +35,7 @@
 import time
 import errno
 import signal
+import locale
 
 import wx
 
@@ -441,7 +442,7 @@
 
         for type, msg in self.__ProcessStdErr():
             if type == 'ERROR':
-                return unicode(msg, "utf-8")
+                return unicode(msg, locale.getdefaultlocale()[1])
 
         return ''
     



More information about the grass-commit mailing list