--- a/util/ProcessLogger.py Mon Dec 04 11:20:46 2017 +0300
+++ b/util/ProcessLogger.py Mon Dec 04 19:35:31 2017 +0300
@@ -78,7 +78,7 @@
no_stdout=False, no_stderr=False, no_gui=True,
timeout=None, outlimit=None, errlimit=None,
endlog=None, keyword=None, kill_it=False, cwd=None,
+ encoding=None, output_encoding=None): if not isinstance(Command, list):
self.Command_str = Command
@@ -95,6 +95,7 @@
self.Command_str = subprocess.list2cmdline(self.Command)
fsencoding = sys.getfilesystemencoding()
+ self.output_encoding = output_encoding @@ -155,6 +156,8 @@
+ if v and self.output_encoding: + v = v.decode(self.output_encoding) @@ -163,6 +166,8 @@
+ if v and self.output_encoding: + v = v.decode(self.output_encoding)