浏览代码

wxGUI: fix encoding issue from https://trac.osgeo.org/grass/ticket/2835

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67334 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父节点
当前提交
24bec4f31a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/gui_core/forms.py

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

@@ -629,7 +629,8 @@ class TaskFrame(wx.Frame):
         
     def updateValuesHook(self, event = None):
         """Update status bar data"""
-        self.SetStatusText(' '.join(map(gcmd.DecodeString, self.notebookpanel.createCmd(ignoreErrors = True))))
+        self.SetStatusText(' '.join([gcmd.DecodeString(each) if isinstance(each, str) else each
+                                     for each in self.notebookpanel.createCmd(ignoreErrors=True)]))
         if event:
             event.Skip()