This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients Arfrever, martin.panter, orsenthil, pitrou, serhiy.storchaka, vstinner
Date 2015-10-01.00:49:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443660581.51.0.177414600587.issue25184@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch that implements my IRI (Unicode URL) proposal. Differences compared to Serhiy’s patches:

* “file:” URLs use Unicode if possible. Percent encode encoding only used for reserved ASCII characters and undecodable bytes.

* HTTP URLs use UTF-8 and retain surrogate escaping. This means that the links generated by “getobj” pages to “getfile” pages work with troublesome paths.

* Displayed file names are get an ASCII question mark thanks to the “replace” error handler. This means that the generated HTML is now encodable to UTF-8. Serhiy’s path would be displayed something like:

/home/serhiy/py/cpy?thon-3.5/Lib/pydoc.py (invalid filename encoding)

* Added some missing html.escape() calls.
History
Date User Action Args
2015-10-01 00:49:42martin.pantersetrecipients: + martin.panter, orsenthil, pitrou, vstinner, Arfrever, serhiy.storchaka
2015-10-01 00:49:41martin.pantersetmessageid: <1443660581.51.0.177414600587.issue25184@psf.upfronthosting.co.za>
2015-10-01 00:49:41martin.panterlinkissue25184 messages
2015-10-01 00:49:41martin.pantercreate