util/ProcessLogger.py
branchpython3
changeset 3755 ca814b175391
parent 3750 f62625418bff
child 3786 50935528d313
--- a/util/ProcessLogger.py	Fri Oct 28 14:26:17 2022 +0800
+++ b/util/ProcessLogger.py	Fri Oct 28 14:53:23 2022 +0800
@@ -23,7 +23,6 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 
-
 import os
 import sys
 import subprocess
@@ -142,7 +141,7 @@
         if _debug and self.logger:
             self.logger.write("(DEBUG) launching:\n" + self.Command_str + "\n")
 
-        self.Proc = subprocess.Popen(self.Command, **popenargs)
+        self.Proc = subprocess.Popen(self.Command, encoding="utf-8", **popenargs)
 
         self.outt = outputThread(
             self.Proc,