Message149070
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. |
|
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 | |
|