浏览代码

wxGUI/lmgr: attempt to handle non-ascii characters returned by platform.platform function

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57865 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 11 年之前
父节点
当前提交
526cb9a45c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/lmgr/frame.py

+ 1 - 1
gui/wxpython/lmgr/frame.py

@@ -992,7 +992,7 @@ class GMFrame(wx.Frame):
                                                vInfo['gdal'], vInfo['proj4'], vInfo['geos'], vInfo['sqlite'],
                                                platform.python_version(),
                                                wx.__version__,
-                                               _("Platform"), platform.platform(), osgeo4w),
+                                               _("Platform"), platform.platform().decode('utf8', errors='replace'), osgeo4w),
                                 priority = 2)
         self._gconsole.WriteCmdLog(' ')