Message98593
#7608 was a duplicate issue. Copy of my message (msg98091):
-----
SimpleXMLRPCRequestHandler.do_POST() writes the traceback in the HTTP header "X-traceback". But an HTTP header value is ASCII only, whereas a traceback can contain any character (eg. an non-ASCII character from a directory name for this issue).
A simple fix would be to use the ASCII charset with the backslashreplace error handler. Attached patch uses:
trace = str(trace.encode('ASCII', 'backslashreplace'), 'ASCII')
Is there an easier method to escape non-ASCII characters without double conversion (unicode->bytes and bytes->unicode)?
-----
I also copied my patch to this issue. |
|
| Date |
User |
Action |
Args |
| 2010-01-31 02:31:07 | vstinner | set | recipients:
+ vstinner, loewis, pitrou, r.david.murray |
| 2010-01-31 02:31:07 | vstinner | set | messageid: <[email protected]> |
| 2010-01-31 02:31:06 | vstinner | link | issue7606 messages |
| 2010-01-31 02:31:05 | vstinner | create | |
|