[GRASS-SVN] r65608 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 18 07:38:44 PDT 2015


Author: martinl
Date: 2015-07-18 07:38:44 -0700 (Sat, 18 Jul 2015)
New Revision: 65608

Modified:
   grass/branches/releasebranch_7_0/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/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py	2015-07-18 14:32:19 UTC (rev 65607)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py	2015-07-18 14:38:44 UTC (rev 65608)
@@ -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()
 
@@ -2509,7 +2509,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