Sfoglia il codice sorgente

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 anni fa
parent
commit
526cb9a45c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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(' ')