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.

作者 serhiy.storchaka
收信人 Arfrever, martin.panter, orsenthil, serhiy.storchaka, vstinner
日期 2015-09-21.13:37:34
SpamBayes Score -1.0
Marked as misclassified
Message-id <1442842656.34.0.749769588877.issue25184@psf.upfronthosting.co.za>
In-reply-to
内容
We could use url = urllib.parse.quote_from_bytes(os.fsencode(path)) on Posix systems, but I heart that on Windows os.fsencode() can irreversible spoil file names (replace unencodable characters with '?'). On other side, I'm not sure that Windows unicode path can't contain lone surrogates. In this case we should use the 'surrogatepass' error handler (at least it allow to restore the path in principle).

Here is a patch that tries to handle undecodable and unencodable paths. Need to test it on Windows.
历史
日期 用户 动作 参数
2015-09-21 13:37:36serhiy.storchaka修改recipients: + serhiy.storchaka, orsenthil, vstinner, Arfrever, martin.panter
2015-09-21 13:37:36serhiy.storchaka修改messageid: <1442842656.34.0.749769588877.issue25184@psf.upfronthosting.co.za>
2015-09-21 13:37:36serhiy.storchaka链接issue25184 messages
2015-09-21 13:37:36serhiy.storchaka创建