Merge branch 'sb/misc-cleanup'
[gitweb.git] / contrib / mw-to-git / git-remote-mediawiki.perl
index e40c0347df1f5f1bf9414c021074a8ef8eae9fb5..f8d7d2ca6c0926912200ddcadf8359c1b9bfef44 100755 (executable)
@@ -576,9 +576,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;
 }