Skip to content

Commit 486a6a3

Browse files
committed
line-directive decode utf8 charset
The line-directive was failing due to receiving non-ascii chars. This patch sets the command to expect utf-8 encoded strings.
1 parent 9e54917 commit 486a6a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-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) + ')'

0 commit comments

Comments
 (0)