Skip to content

Commit 5ed9172

Browse files
authored
Merge pull request #62709 from tshortli/swift-api-dump-utf8-5.8
[5.8] Utils: Decode subprocess output as UTF-8 in `swift-api-dump.py`.
2 parents 87b9e57 + 859b0c4 commit 5ed9172

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/swift-api-dump.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def run_command(args):
127127
proc = subprocess.Popen(
128128
args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
129129
out, err = proc.communicate()
130+
out = out.decode('UTF8')
130131
exitcode = proc.returncode
131132
return (exitcode, out, err)
132133

0 commit comments

Comments
 (0)