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:
Matthieu Moy 2013-07-03 11:14:19 +02:00 committed by Junio C Hamano
parent 8c4e4ec3ff
commit 0e7c41c0cd

View file

@ -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;
}