瀏覽代碼

attempt to fix 'ascii' codec can't decode byte 0xf6 in position 12: ordinal not in range(128) (https://trac.osgeo.org/grass/ticket/2703)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65608 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父節點
當前提交
b882d6c48f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_core/forms.py

+ 2 - 2
gui/wxpython/gui_core/forms.py

@@ -625,7 +625,7 @@ class TaskFrame(wx.Frame):
         
     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 @@ if __name__ == "__main__":
         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