aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn
diff options
context:
space:
mode:
authorsmcv <smcv@web>2014-09-04 06:28:16 -0400
committeradmin <admin@branchable.com>2014-09-04 06:28:16 -0400
commit36189bb9441fd3d2ecd91153418bfb7687c12576 (patch)
treea7ab5b09c7f07978a1667ff3713f0859f08d2019 /doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn
parentc34d32edd42f662abe33646bdd86039bfae92655 (diff)
downloadikiwiki-36189bb9441fd3d2ecd91153418bfb7687c12576.tar
ikiwiki-36189bb9441fd3d2ecd91153418bfb7687c12576.tar.gz
reproducible with Python 3 on Debian
Diffstat (limited to 'doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn')
-rw-r--r--doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn b/doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn
index f2ebd9f32..1207de601 100644
--- a/doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn
+++ b/doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn
@@ -8,7 +8,26 @@ working with python 2.7
not working with python3.3~3.4
[http://dpaste.com/0ACNK3W](http://dpaste.com/0ACNK3W)
+> Retitled this bug report since it seems to be specific to Python 3.
+>
+> The `rst` plugin is probably more commonly used with Python 2.
+> It seems likely that there is some Python-3-specific bug in `proxy.py`,
+> perhaps introduced by [commit 154c4ea
+ "properly encode and decode from/to utf8 when sending rpc to ikiwiki"](
+http://source.ikiwiki.branchable.com/?p=source.git;a=commitdiff;h=154c4ea9e65d033756330a7f8c5c0fa285380bf0).
+>
+> I can reproduce this on Debian by installing `python3-docutils`
+> and changing the first line of `plugins/proxy.py`, the first
+> line of `plugins/pythondemo`, the first line of `plugins/rst`
+> and the `system()` call in `t/rst.t` to use `python3` instead
+> of `python`. --[[smcv]]
+
looks like the problem is in proxy.py
ml = _IkiWikiExtPluginXMLRPCHandler._read(in_fd).decode('utf8')
without decode('utf8') is working
+
+> That call was introduced
+> [[to fix a bug under Python 2|bugs/pythonproxy-utf8_again]]
+> so it cannot just be removed. Perhaps it needs to be conditional
+> on major Python version :-(