소스 검색

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()