Author michael.foord
Recipients docs@python, michael.foord
Date 2011-12-09.01:49:59
SpamBayes Score 0.0331784
Marked as misclassified No
Message-id <1323395400.31.0.796436036954.issue13561@psf.upfronthosting.co.za>
In-reply-to
Content
Where os.listdir encounters undecodable bytes from the filesystem it uses the surrogateescape handler. As the resulting strings are invalid they can't be encoded without an errorhandler, and so can't be printed (for example).

This should be documented.
History
Date User Action Args
2011-12-09 01:50:00michael.foordsetrecipients: + michael.foord, docs@python
2011-12-09 01:50:00michael.foordsetmessageid: <1323395400.31.0.796436036954.issue13561@psf.upfronthosting.co.za>
2011-12-09 01:49:59michael.foordlinkissue13561 messages
2011-12-09 01:49:59michael.foordcreate