Skip to content

Commit e7ceabc

Browse files
committed
[SwiftSyntax] Decode stdout and stderr in round-trip-syntax-test as UTF-8
1 parent 67c097a commit e7ceabc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/round-trip-syntax-test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class RoundTripTask(object):
7272
logging.error('---===ERROR===--- Lex/parse had error'
7373
' diagnostics, so not diffing.')
7474
logging.error(' '.join(command))
75-
logging.error(self.stdout)
76-
logging.error(self.stderr)
75+
logging.error(self.stdout.decode('utf-8', errors='replace'))
76+
logging.error(self.stderr.decode('utf-8', errors='replace'))
7777
raise RuntimeError()
7878

7979
contents = ''.join(map(lambda l: l.decode('utf-8', errors='replace'),

0 commit comments

Comments
 (0)