提交 0e7c41c0 编写于 作者: M Matthieu Moy 提交者: Junio C Hamano

git-remote-mediawiki: un-brace file handles in binmode calls

Commit e83d36b6 turned "print STDOUT" into "print {*STDOUT}", as
suggested by perlcritic. Unfortunately, it also changed two "binmode
STDOUT" calls the same way, which does not work and yield a "Not a GLOB
reference" error.
Signed-off-by: NMatthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 8c4e4ec3
......@@ -635,9 +635,9 @@ sub literal_data_raw {
my ($content) = @_;
# Avoid confusion between size in bytes and in characters
utf8::downgrade($content);
binmode {*STDOUT}, ':raw';
binmode STDOUT, ':raw';
print {*STDOUT} 'data ', bytes::length($content), "\n", $content;
binmode {*STDOUT}, ':encoding(UTF-8)';
binmode STDOUT, ':encoding(UTF-8)';
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册