Fix utility output capture encoding. Fixes #2854
parent
3e1caa61e1
commit
8f070f6095
|
|
@ -362,6 +362,8 @@ class BatchProcess(object):
|
|||
out_completed = err_completed = False
|
||||
process_output = (out != -1 and err != -1)
|
||||
enc = sys.getdefaultencoding()
|
||||
if enc is None or enc == 'ascii':
|
||||
enc = 'utf-8'
|
||||
|
||||
def read_log(logfile, log, pos, ctime):
|
||||
completed = True
|
||||
|
|
|
|||
Loading…
Reference in New Issue