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 vstinner
Recipients ezio.melotti, fhoech, vstinner
Date 2014-11-13.14:40:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415889644.51.0.866465652984.issue22862@psf.upfronthosting.co.za>
In-reply-to
Content
Your problem has two solutions.

1) Upgrade to Python 3 which handles correctly your use case (thanks to the PEP 383, surrogateescape error handler)

2) Only process filenames as bytes, and encode/decode manually (so you can decide how to handle undecodable filenames)
History
Date User Action Args
2014-11-13 14:40:44vstinnersetrecipients: + vstinner, ezio.melotti, fhoech
2014-11-13 14:40:44vstinnersetmessageid: <1415889644.51.0.866465652984.issue22862@psf.upfronthosting.co.za>
2014-11-13 14:40:44vstinnerlinkissue22862 messages
2014-11-13 14:40:44vstinnercreate