git/contrib/mw-to-git
Matthieu Moy 9742fb7e53 git-remote-mediawiki: fix encoding issue for UTF-8 media files
When a media file contains valid UTF-8, git-remote-mediawiki tried to be
too clever about the encoding, and the call to utf8::downgrade() on the
downloaded content was failing with

  Wide character in subroutine entry at git-remote-mediawiki line 583.

Instead, use $response->decode() to apply decoding linked to the
Content-Encoding: header, and return the content without attempting any
charset decoding.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-04-23 15:22:54 -07:00
..
bin-wrapper git-remote-mediawiki: add a git bin-wrapper for developement 2013-07-08 08:55:53 -07:00
Git git-remote-mediawiki: add preview subcommand into git mw 2013-07-08 08:56:14 -07:00
t git-remote-mediawiki: fix encoding issue for UTF-8 media files 2014-04-23 15:22:54 -07:00
.gitignore git-remote-mediawiki: ignore generated git-mw 2013-08-13 09:52:22 -07:00
.perlcriticrc git-remote-mediawiki: add a .perlcriticrc file 2013-06-14 09:02:18 -07:00
git-mw.perl git-remote-mediawiki: add preview subcommand into git mw 2013-07-08 08:56:14 -07:00
git-remote-mediawiki.perl git-remote-mediawiki: fix encoding issue for UTF-8 media files 2014-04-23 15:22:54 -07:00
git-remote-mediawiki.txt git-remote-mediawiki: new wiki URL in documentation 2013-04-04 09:54:38 -07:00
Makefile Merge branch 'jn/mediawiki-makefile-updates' 2013-12-05 13:00:23 -08:00