Message149070
| 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:00 | michael.foord | set | recipients:
+ michael.foord, docs@python |
| 2011年12月09日 01:50:00 | michael.foord | set | messageid: <1323395400.31.0.796436036954.issue13561@psf.upfronthosting.co.za> |
| 2011年12月09日 01:49:59 | michael.foord | link | issue13561 messages |
| 2011年12月09日 01:49:59 | michael.foord | create |
|