Merge "Use surrogateescape with outfilter.py"

This commit is contained in:
Zuul 2018-06-06 06:20:27 +00:00 committed by Gerrit Code Review
commit 29230d74c5

View File

@ -78,7 +78,8 @@ def main():
if sys.version_info < (3,):
outfile.write(ts_line)
else:
outfile.write(ts_line.encode('utf-8'))
outfile.write(
ts_line.encode('utf-8', errors='surrogateescape'))
outfile.flush()