Martin Panter added the comment:

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.

----------
Added file: http://bugs.python.org/file40636/pydoc_iri.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25184>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to