mirror of
https://github.com/git/git.git
synced 2025-04-11 09:16:34 +00:00
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>
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…
x
Reference in New Issue
Block a user