Browse Source

wxGUI: fix encoding issue from https://trac.osgeo.org/grass/ticket/2835 (merge from trunk, https://trac.osgeo.org/grass/changeset/67334)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67347 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 years ago
parent
commit
d061eff38d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_core/forms.py

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

@@ -625,7 +625,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()