ikiwiki/IkiWiki
Anders Kaseorg f35c6a97d1 Fix double UTF-8 decode on Perl < 5.20 with upgraded Encode.pm
Commit feb21ebfac added a
safe_decode_utf8 function that avoids double decoding on Perl 5.20.
But the Perl behavior change actually happened in Encode.pm 2.53
(https://github.com/dankogai/p5-encode/pull/11).  Although Perl 5.20
is the first Perl version to bundle an affected version of Encode.pm,
it’s also possible to upgrade Encode.pm independently; for example,
Fedora 20 has Perl 5.18.4 with Encode.pm 2.54.  On such a system,
editing a non-ASCII file still fails with errors like

Error: Cannot decode string with wide characters at
/usr/lib64/perl5/vendor_perl/Encode.pm line 216.

There doesn’t seem to be any reason not to check Encode::is_utf8 on
old versions too, so just remove the version check altogether.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Bug-Debian: https://bugs.debian.org/776181
2015-03-01 12:43:20 +00:00
..
Plugin In VCS-committed anonymous comments, link to url. 2015-01-08 08:11:40 -05:00
Setup Merge remote-tracking branch 'schmonz/portability' 2012-01-30 15:20:54 -04:00
CGI.pm Fix double UTF-8 decode on Perl < 5.20 with upgraded Encode.pm 2015-03-01 12:43:20 +00:00
Receive.pm Consume all stdin when rcs_receive short-circuits, to avoid git SIPIPE race. 2011-12-05 15:17:01 -04:00
Render.pm page.tmpl: tell mobile browsers we have a responsive layout, unless told not to 2014-12-01 21:29:46 +00:00
Setup.pm Detect plugins with a broken getsetup and warn. 2013-03-04 13:19:05 -04:00
UserInfo.pm remove deprecated admin prefs 2008-12-24 16:16:03 -05:00
Wrapper.pm fix another unchecked malloc 2015-01-25 00:10:34 -04:00