From 36189bb9441fd3d2ecd91153418bfb7687c12576 Mon Sep 17 00:00:00 2001 From: smcv Date: Thu, 4 Sep 2014 06:28:16 -0400 Subject: [PATCH] reproducible with Python 3 on Debian --- ..._plugin_hangs_when_used_with_Python_3.mdwn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 :-( -- 2.45.0