mirror of
https://github.com/git/git.git
synced 2024-11-25 19:04:18 +08:00
git-remote-mediawiki: un-brace file handles in binmode calls
Commit e83d36b66f
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: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8c4e4ec3ff
commit
0e7c41c0cd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user