]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
reproducible with Python 3 on Debian
authorsmcv <smcv@web>
Thu, 4 Sep 2014 10:28:16 +0000 (06:28 -0400)
committeradmin <admin@branchable.com>
Thu, 4 Sep 2014 10:28:16 +0000 (06:28 -0400)
doc/bugs/rst_plugin_hangs_when_used_with_Python_3.mdwn

index f2ebd9f3220f6bfc0d364e376a3e79d004ac1d1c..1207de601ab704936221863bef105a0209341858 100644 (file)
@@ -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 :-(