]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/rst_fails_on_file_containing_only_a_number.mdwn
why this is hard
[ikiwiki.git] / doc / bugs / rst_fails_on_file_containing_only_a_number.mdwn
1 If you create a foo.rst containing only a number, such as "11", rendering
2 results in the following error being thrown. (Now that I've fixed the error
3 throwing code..):
4
5         exceptions.TypeError:coercing to Unicode: need string or buffer, int found
6
7 --[[Joey]]
8
9 > Does this patch against proxy.py help?
10
11     index 5136b3c..545e226 100755
12     --- a/plugins/proxy.py
13     +++ b/plugins/proxy.py
14     @@ -88,7 +101,7 @@ class _IkiWikiExtPluginXMLRPCHandler(object):
15
16         @staticmethod
17         def _write(out_fd, data):
18     -        out_fd.write(data)
19     +        out_fd.write(str(data))
20             out_fd.flush()
21
22         @staticmethod
23
24 > No, still the same failure. I think it's failing parsing the input data,
25 > (which perl probably transmitted as an int due to perl internals)
26 > not writing out its response. --[[Joey]]