aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangaco <Changaco@web>2013-06-04 06:14:15 -0400
committeradmin <admin@branchable.com>2013-06-04 06:14:15 -0400
commitd2856920ec164fb16b7bfac794f27db01a3392de (patch)
tree88a004f2e7631a078cab1dbf8abdd8856042a2c2
parentea1bed541087a72ccd318811664aa5f477b20479 (diff)
downloadikiwiki-d2856920ec164fb16b7bfac794f27db01a3392de.tar
ikiwiki-d2856920ec164fb16b7bfac794f27db01a3392de.tar.gz
new patch
-rw-r--r--doc/bugs/encoding_issue_in_blogspam_plugin.mdwn32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/bugs/encoding_issue_in_blogspam_plugin.mdwn b/doc/bugs/encoding_issue_in_blogspam_plugin.mdwn
new file mode 100644
index 000000000..61e75a1c3
--- /dev/null
+++ b/doc/bugs/encoding_issue_in_blogspam_plugin.mdwn
@@ -0,0 +1,32 @@
+[[!tag patch]]
+
+<pre>
+From 5ad35b2805ca50478f07d810e57e7c9b8f4eddea Mon Sep 17 00:00:00 2001
+From: Changaco &lt;changaco@changaco.net>
+Date: Tue, 4 Jun 2013 02:54:35 +0200
+Subject: [PATCH] fix encoding issue in blogspam plugin
+
+RPC::XML uses ascii as default encoding, we have to tell it to use utf8.
+
+Without this, ikiwiki returns "failed to get response from blogspam server"
+every time a non-ascii character is used in a content that needs checking.
+
+---
+ IkiWiki/Plugin/blogspam.pm | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/IkiWiki/Plugin/blogspam.pm b/IkiWiki/Plugin/blogspam.pm
+index d32c2f1..e48ed72 100644
+--- a/IkiWiki/Plugin/blogspam.pm
++++ b/IkiWiki/Plugin/blogspam.pm
+@@ -53,6 +53,7 @@ sub checkconfig () {
+ eval q{
+ use RPC::XML;
+ use RPC::XML::Client;
++ $RPC::XML::ENCODING = 'utf-8';
+ };
+ error $@ if $@;
+ }
+--
+1.8.3
+</pre>