git-remote-mediawiki: un-brace file handles in binmode calls
Commit e83d36b66fc 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>
Matthieu Moy committed
Jul 3, 2013 at 11:14 UTC
0e7c41c0cd14b0d748ce624e49800b63f9b27991
1 file changed
+2
-2
contrib/mw-to-git/git-remote-mediawiki.perl
+2
-2
@@ -635,9 +635,9 @@ sub literal_data_raw {
635
my ($content) = @_;
636
# Avoid confusion between size in bytes and in characters
637
utf8::downgrade($content);
638
- binmode {*STDOUT}, ':raw';
638
+ binmode STDOUT, ':raw';
639
print {*STDOUT} 'data ', bytes::length($content), "\n", $content;
640
- binmode {*STDOUT}, ':encoding(UTF-8)';
640
+ binmode STDOUT, ':encoding(UTF-8)';
641
return;
642
}
643