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) = @_;
|
my ($content) = @_;
|
||||||
# Avoid confusion between size in bytes and in characters
|
# Avoid confusion between size in bytes and in characters
|
||||||
utf8::downgrade($content);
|
utf8::downgrade($content);
|
||||||
binmode {*STDOUT}, ':raw';
|
binmode STDOUT, ':raw';
|
||||||
print {*STDOUT} 'data ', bytes::length($content), "\n", $content;
|
print {*STDOUT} 'data ', bytes::length($content), "\n", $content;
|
||||||
binmode {*STDOUT}, ':encoding(UTF-8)';
|
binmode STDOUT, ':encoding(UTF-8)';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user