]> sipb.mit.edu Git - ikiwiki.git/commitdiff
highlight: Fix utf-8 encoding bug. Closes: #535028
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 7 Jul 2009 20:31:18 +0000 (16:31 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 7 Jul 2009 20:31:18 +0000 (16:31 -0400)
IkiWiki/Plugin/highlight.pm
debian/changelog

index 20f79ef575189506fe5343d31950a3f1a57f961e..9bdde85ae3bfd725ee83265b923eb445021a15c4 100644 (file)
@@ -4,6 +4,7 @@ package IkiWiki::Plugin::highlight;
 use warnings;
 use strict;
 use IkiWiki 3.00;
+use Encode;
 
 # locations of highlight's files
 my $filetypes="/etc/highlight/filetypes.conf";
@@ -69,7 +70,7 @@ sub htmlizefallback {
                return;
        }
 
-       return highlight($langfile, shift);
+       return Encode::decode_utf8(highlight($langfile, shift));
 }
 
 my %ext2lang;
index bb33f25f3edd468e7276835888199d73894aca71..239b22b4222db44d2d69de6ca1ea9421d50953aa 100644 (file)
@@ -1,11 +1,12 @@
-ikiwiki (3.1415) UNRELEASED; urgency=low
+ikiwiki (3.1415) unstable; urgency=low
 
   * img: Fix extra double quote with alt text. (smcv)
   * Updated French debconf templates translation. Closes: #535103
   * openid: Support Net::OpenID 2.x when pretty-printing
     openids. (smcv)
+  * highlight: Fix utf-8 encoding bug. Closes: #535028
 
- -- Joey Hess <joeyh@debian.org>  Tue, 16 Jun 2009 15:08:31 -0400
+ -- Joey Hess <joeyh@debian.org>  Tue, 07 Jul 2009 16:25:05 -0400
 
 ikiwiki (3.141) unstable; urgency=low