Skip to content

Commit 0e7c41c

Browse files
moygitster
authored andcommitted
git-remote-mediawiki: un-brace file handles in binmode calls
Commit e83d36b 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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c4e4ec commit 0e7c41c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/mw-to-git/git-remote-mediawiki.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,9 @@ sub literal_data_raw {
635635
my ($content) = @_;
636636
# Avoid confusion between size in bytes and in characters
637637
utf8::downgrade($content);
638-
binmode {*STDOUT}, ':raw';
638+
binmode STDOUT, ':raw';
639639
print {*STDOUT} 'data ', bytes::length($content), "\n", $content;
640-
binmode {*STDOUT}, ':encoding(UTF-8)';
640+
binmode STDOUT, ':encoding(UTF-8)';
641641
return;
642642
}
643643

0 commit comments

Comments
 (0)