From: joey Date: Sun, 30 Jul 2006 05:17:59 +0000 (+0000) Subject: md5 can't handle wide chars X-Git-Tag: 1.13~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=68d7fbfabd3d1b69cf6b9efbfdba9a0f032b977a;p=ikiwiki.git md5 can't handle wide chars --- diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 898854641..0ad24dcd0 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -257,7 +257,8 @@ sub add_page (@) { #{{{ # to avoid unneccessary rebuilding. The mtime from rss cannot be # trusted; let's use a digest. eval q{use Digest::MD5 'md5_hex'}; - my $digest=md5_hex($params{content}); + require Encode; + my $digest=md5_hex(Encode::encode_utf8($params{content})); return unless ! exists $guid->{md5} || $guid->{md5} ne $digest; $guid->{md5}=$digest;