git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
668eec6
)
git-remote-mediawiki: replace :utf8 by :encoding(UTF-8)
author
Célestin Matte
<redacted>
Fri, 14 Jun 2013 13:50:11 +0000
(15:50 +0200)
committer
Junio C Hamano
<redacted>
Fri, 14 Jun 2013 16:02:15 +0000
(09:02 -0700)
Follow perlcritic's InputOutput::RequireEncodingWithUTF8Layer policy
Signed-off-by: Célestin Matte <redacted>
Signed-off-by: Matthieu Moy <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/mw-to-git/git-remote-mediawiki.perl
patch
|
blob
|
history
diff --git
a/contrib/mw-to-git/git-remote-mediawiki.perl
b/contrib/mw-to-git/git-remote-mediawiki.perl
index 895e081b6ecde0cd4e0998002badc8fe4249cd33..57f2238c8080e1668a90e23af360202e4fb879aa 100755
(executable)
--- a/
contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/
contrib/mw-to-git/git-remote-mediawiki.perl
@@
-18,8
+18,8
@@
use DateTime::Format::ISO8601;
use warnings;
# By default, use UTF-8 to communicate with Git and the user
-binmode STDERR, ":
utf8
";
-binmode STDOUT, ":
utf8
";
+binmode STDERR, ":
encoding(UTF-8)
";
+binmode STDOUT, ":
encoding(UTF-8)
";
use URI::Escape;
use IPC::Open2;
@@
-587,7
+587,7
@@
sub literal_data_raw {
utf8::downgrade($content);
binmode STDOUT, ":raw";
print STDOUT "data ", bytes::length($content), "\n", $content;
- binmode STDOUT, ":
utf8
";
+ binmode STDOUT, ":
encoding(UTF-8)
";
}
sub mw_capabilities {
git clone https://git.99rst.org/PROJECT