]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Fix from Faidon for a XML parser issue that breaks utf-8 for
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 11 Jul 2006 20:18:11 +0000 (20:18 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 11 Jul 2006 20:18:11 +0000 (20:18 +0000)
  RecentChanges. Avoid using XML::SAX::PurePerl, which is buggy in this
  area, and also way slow.

IkiWiki/Rcs/svn.pm
debian/changelog

index 71517f21540371566bb2ae79f9b8b9f1f9061cef..560eb38a326941a642a40bf1019cce10aa469823 100644 (file)
@@ -104,8 +104,15 @@ sub rcs_recentchanges ($) { #{{{
        eval q{use CGI 'escapeHTML'};
        eval q{use Date::Parse};
        eval q{use Time::Duration};
+       eval q{use XML::SAX};
        eval q{use XML::Simple};
 
+       # avoid using XML::SAX::PurePerl, it's buggy with UTF-8 data
+       my @parsers = map { ${$_}{Name} } @{XML::SAX->parsers()};
+       do {
+               $XML::Simple::PREFERRED_PARSER = pop @parsers;
+       } until $XML::Simple::PREFERRED_PARSER ne 'XML::SAX::PurePerl';
+
        # --limit is only supported on Subversion 1.2.0+
        my $svn_version=`svn --version -q`;
        my $svn_limit='';
index b2f037e2fb1450d7f7714ccc6675f81f73727ead..5c77798bd47a71dee5271dec66a12094e49c7f77 100644 (file)
@@ -9,8 +9,11 @@ ikiwiki (1.9) UNRELEASED; urgency=low
   * Support a w3mmode, which lets w3m run ikiwiki using its local CGI
     support, to edit pages etc without a web server.
   * Display CGI processing errors if present.
+  * Fix from Faidon for a XML parser issue that breaks utf-8 for
+    RecentChanges. Avoid using XML::SAX::PurePerl, which is buggy in this
+    area, and also way slow.
 
- -- Joey Hess <joeyh@debian.org>  Mon, 10 Jul 2006 17:12:57 -0400
+ -- Joey Hess <joeyh@debian.org>  Tue, 11 Jul 2006 14:37:30 -0400
 
 ikiwiki (1.8) unstable; urgency=low