Fix utility output capture encoding. Fixes #2854

This commit is contained in:
Alexander Lakhin 2017-11-09 08:51:56 -05:00 committed by Dave Page
parent 3e1caa61e1
commit 8f070f6095

View File

@ -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