aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-14 15:37:45 -0400
committerJoey Hess <joey@kitenet.net>2010-09-14 15:37:45 -0400
commit0ff945ddf19010b890458face057505f7b48b572 (patch)
treef5df3fd151f154d391c9b49345909b7cb20f6593 /IkiWiki/Plugin
parente0898ae1a8e64a12c4e47b3f922d6cf1fad4f31c (diff)
downloadikiwiki-0ff945ddf19010b890458face057505f7b48b572.tar
ikiwiki-0ff945ddf19010b890458face057505f7b48b572.tar.gz
external: Disable RPC::XML's "smart" encoding, which sent ints for strings that contained only a number, fixing a longstanding crash of the rst plugin.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/external.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm
index ec91c79db..a4cc1dd3c 100644
--- a/IkiWiki/Plugin/external.pm
+++ b/IkiWiki/Plugin/external.pm
@@ -28,7 +28,9 @@ sub import {
$plugins{$plugin}={in => $plugin_read, out => $plugin_write, pid => $pid,
accum => ""};
+
$RPC::XML::ENCODING="utf-8";
+ $RPC::XML::FORCE_STRING_ENCODING="true";
rpc_call($plugins{$plugin}, "import");
}