git-remote-mediawiki: replace :utf8 by :encoding(UTF-8)
Follow perlcritic's InputOutput::RequireEncodingWithUTF8Layer policy Signed-off-by: Célestin Matte <celestin.matte@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
668eec6f74
commit
6a504a3f45
@ -18,8 +18,8 @@ use DateTime::Format::ISO8601;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
# By default, use UTF-8 to communicate with Git and the user
|
# By default, use UTF-8 to communicate with Git and the user
|
||||||
binmode STDERR, ":utf8";
|
binmode STDERR, ":encoding(UTF-8)";
|
||||||
binmode STDOUT, ":utf8";
|
binmode STDOUT, ":encoding(UTF-8)";
|
||||||
|
|
||||||
use URI::Escape;
|
use URI::Escape;
|
||||||
use IPC::Open2;
|
use IPC::Open2;
|
||||||
@ -587,7 +587,7 @@ sub literal_data_raw {
|
|||||||
utf8::downgrade($content);
|
utf8::downgrade($content);
|
||||||
binmode STDOUT, ":raw";
|
binmode STDOUT, ":raw";
|
||||||
print STDOUT "data ", bytes::length($content), "\n", $content;
|
print STDOUT "data ", bytes::length($content), "\n", $content;
|
||||||
binmode STDOUT, ":utf8";
|
binmode STDOUT, ":encoding(UTF-8)";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub mw_capabilities {
|
sub mw_capabilities {
|
||||||
|
Loading…
Reference in New Issue
Block a user