python3: decode the stdout stream

This commit is contained in:
Nico Tonnhofer 2019-01-11 08:25:14 +01:00
parent ec9fa99b66
commit 86123f80f7
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class ScriptThread:
return return
obuf = "" obuf = ""
while not self.cancelled: while not self.cancelled:
o = p.stdout.read(1) o = p.stdout.read(1).decode("utf-8", "ignore")
if o == "": if o == "":
break break
if o == "\r" or o == "\n": if o == "\r" or o == "\n":