[New-bugs-announce] [issue13561] os.listdir documentation should mention surrogateescape

Michael Foord report at bugs.python.org
Fri Dec 9 02:50:00 CET 2011


New submission from Michael Foord <michael at voidspace.org.uk>:

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.

----------
assignee: docs at python
components: Documentation
messages: 149070
nosy: docs at python, michael.foord
priority: normal
severity: normal
stage: needs patch
status: open
title: os.listdir documentation should mention surrogateescape
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13561>
_______________________________________


More information about the New-bugs-announce mailing list