Ver código fonte

wxGUI: fix command output handling in Python3

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73796 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 anos atrás
pai
commit
c7bb2fff21
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      gui/wxpython/core/gcmd.py

+ 2 - 1
gui/wxpython/core/gcmd.py

@@ -50,6 +50,7 @@ else:
 from grass.script import core as grass
 from core import globalvar
 from core.debug import Debug
+from grass.script.utils import decode
 
 # cannot import from the core.utils module to avoid cross dependencies
 try:
@@ -342,7 +343,7 @@ def recv_some(p, t=.1, e=1, tr=5, stderr=0):
             else:
                 break
         elif r:
-            y.append(r)
+            y.append(decode(r))
         else:
             time.sleep(max((x - time.time()) / tr, 0))
     return ''.join(y)