sometimes contain invalid utf-8 byte sequences. Thanks,
HenrikBrixAndersen.
$pid=open2(*IN, *OUT, "$params{prog} -Tpng");
# open2 doesn't respect "use open ':utf8'"
$pid=open2(*IN, *OUT, "$params{prog} -Tpng");
# open2 doesn't respect "use open ':utf8'"
binmode (OUT, ':utf8');
print OUT $src;
binmode (OUT, ':utf8');
print OUT $src;
it.
* Add a htmlext config option, this can be used to make ikiwiki generate
html files with a different extension.
it.
* Add a htmlext config option, this can be used to make ikiwiki generate
html files with a different extension.
+ * Fix graphviz plugin to not try to read images as utf-8; they might
+ sometimes contain invalid utf-8 byte sequences. Thanks,
+ HenrikBrixAndersen.
- -- Joey Hess <joeyh@debian.org> Tue, 24 Jul 2007 21:11:30 -0400
+ -- Joey Hess <joeyh@debian.org> Tue, 24 Jul 2007 22:14:41 -0400
ikiwiki (2.4) unstable; urgency=low
ikiwiki (2.4) unstable; urgency=low
utf8 "\x89" does not map to Unicode at /usr/local/lib/perl5/site_perl/5.8.8/IkiWiki/Plugin/graphviz.pm line 53, <IN> chunk 1.
Wide character in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.8/IkiWiki/Plugin/graphviz.pm line 68.
utf8 "\x89" does not map to Unicode at /usr/local/lib/perl5/site_perl/5.8.8/IkiWiki/Plugin/graphviz.pm line 53, <IN> chunk 1.
Wide character in subroutine entry at /usr/local/lib/perl5/site_perl/5.8.8/IkiWiki/Plugin/graphviz.pm line 68.
+> Ok, will remove the binmode IN then. [[done]] --[[Joey]]
+
It also generates image URLs relative to the page being rendered, which means the URLs wont work when previewing a graph from the CGI script.
It also generates image URLs relative to the page being rendered, which means the URLs wont work when previewing a graph from the CGI script.
+> You seem to be using an old version of ikiwiki, these preview isues have
+> been fixed for some time, and the code doesn't look like what you patch
+> in your second hunk. --[[Joey]]
+
The patch below fixes these two issues.
--- graphviz.pm.orig Thu Jun 7 15:45:16 2007
The patch below fixes these two issues.
--- graphviz.pm.orig Thu Jun 7 15:45:16 2007
The patch below makes it possible to install those files to alternative directories
while the default stays as it is now.
The patch below makes it possible to install those files to alternative directories
while the default stays as it is now.
+> It should be possible to use the existing MakeMaker variables such as
+> INSTALLMAN1DIR (though MakeMaker lacks one for man8). I'd prefer not
+> adding new variables where MakeMaker already has them. --[[Joey]]
+
<pre>
- Introduce two variables, IKI_MANDIR and IKI_W3MCGIDIR, to be set from
<pre>
- Introduce two variables, IKI_MANDIR and IKI_W3MCGIDIR, to be set from
-</pre>
\ No newline at end of file