diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2012-06-27 11:10:17 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-27 14:18:02 -0700 |
commit | 721a533f8c9b152b4510569b3b486437d179c773 (patch) | |
tree | e80d728e86eeb8f96b317fd54b49978f641f0619 /contrib | |
parent | 28c24bd7253c3c7a4f3134c5bae4d039b9838e87 (diff) | |
download | git-721a533f8c9b152b4510569b3b486437d179c773.tar.gz |
git-remote-mediawiki: don't "use encoding 'utf8';"
The use of this statement is generally discouraged, and is too intrusive
for us: it forces the HTTP requests made by the API to contain only valid
UTF-8 characters. This would break the upload of binary files.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/mw-to-git/git-remote-mediawiki | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki b/contrib/mw-to-git/git-remote-mediawiki index e929b7a728..4b6149fb57 100755 --- a/contrib/mw-to-git/git-remote-mediawiki +++ b/contrib/mw-to-git/git-remote-mediawiki @@ -36,11 +36,10 @@ use strict; use MediaWiki::API; use DateTime::Format::ISO8601; -use encoding 'utf8'; -# use encoding 'utf8' doesn't change STDERROR -# but we're going to output UTF-8 filenames to STDERR +# By default, use UTF-8 to communicate with Git and the user binmode STDERR, ":utf8"; +binmode STDOUT, ":utf8"; use URI::Escape; use IPC::Open2; |