Skip to content

Commit f0ba04e

Browse files
authored
Merge pull request #58420 from etcwilde/ewilde/fix-python3-encoding
`line-directive` decode utf8 charset
2 parents 2c140bd + edc30c3 commit f0ba04e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utils/line-directive

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ def run():
690690
command_args,
691691
stderr=subprocess.STDOUT,
692692
stdout=subprocess.PIPE,
693-
universal_newlines=True
693+
universal_newlines=True,
694+
encoding='UTF-8'
694695
)
695696

696697
sources = '(?P<file>' + '|'.join(re.escape(s) for s in sources) + ')'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// RUN: %{python} %utils/line-directive
2+
// RUN: %{python} %utils/line-directive -- %{python} -c "print('Hello 😄🂐')"

0 commit comments

Comments
 (0)