git-remote-mediawiki: don't "use encoding 'utf8';"
[gitweb.git] / contrib / mw-to-git / git-remote-mediawiki
index e929b7a728c04be911783e005afa5a49bcc1a48c..4b6149fb574960a05a12f47509d1913a1e70897e 100755 (executable)
 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;