summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-11 00:11:49 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-11 00:11:49 -0500
commit4aab5f0a73e9e4643ce8174613bd700cf7c3ab68 (patch)
treeeee6a113c6a91bdae42af47b48f6adeb412b3326 /IkiWiki/Plugin
parent402938941406ab2bf611eee6f0b7de2b9c09c2d3 (diff)
* Generate XML RPC messages with the encoding set to utf-8 instead
of XML::RPC's default of us-ascii. Allows interoperation with python's xmlrpc library, which threw invalid encoding exceptions and caused the rst plugin to hang.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/external.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm
index 8d1baa587..a5afdc4be 100644
--- a/IkiWiki/Plugin/external.pm
+++ b/IkiWiki/Plugin/external.pm
@@ -29,6 +29,7 @@ sub import { #{{{
$plugins{$plugin}={in => $plugin_read, out => $plugin_write, pid => $pid,
accum => ""};
+ $RPC::XML::ENCODING="utf-8";
rpc_call($plugins{$plugin}, "import");
} #}}}