[GRASS-SVN] r65607 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 18 07:32:19 PDT 2015


Author: martinl
Date: 2015-07-18 07:32:19 -0700 (Sat, 18 Jul 2015)
New Revision: 65607

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
attempt to fix 'ascii' codec can't decode byte 0xf6 in position 12: ordinal not in range(128) (#2703)


Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2015-07-18 13:31:48 UTC (rev 65606)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2015-07-18 14:32:19 UTC (rev 65607)
@@ -625,7 +625,7 @@
         
     def updateValuesHook(self, event = None):
         """Update status bar data"""
-        self.SetStatusText(' '.join(self.notebookpanel.createCmd(ignoreErrors = True)))
+        self.SetStatusText(' '.join(map(gcmd.DecodeString, self.notebookpanel.createCmd(ignoreErrors = True))))
         if event:
             event.Skip()
 
@@ -2539,7 +2539,7 @@
         cmd = utils.split(sys.argv[1])
         task = gtask.grassTask(cmd[0])
         task.set_options(cmd[1:])
-        Debug.msg(1, "forms.py opening form for: %s" % task.get_cmd(ignoreErrors=True))
+        Debug.msg(1, "forms.py opening form for: %s" % task.get_cmd(ignoreErrors=True, ignoreRequired=True))
         app = GrassGUIApp(task)
         app.MainLoop()
     else: #Test



More information about the grass-commit mailing list