[issue13561] os.listdir documentation should mention surrogateescape

2020-11-16 Thread STINNER Victor
STINNER Victor added the comment: > I think this was added in another section of this doc. See the second > paragraph in > https://docs.python.org/3/library/os.html#file-names-command-line-arguments-and-environment-variables Right, this section now explains encodings and the error handler.

[issue13561] os.listdir documentation should mention surrogateescape

2020-11-16 Thread Irit Katriel
Irit Katriel added the comment: I think this was added in another section of this doc. See the second paragraph in https://docs.python.org/3/library/os.html#file-names-command-line-arguments-and-environment-variables -- nosy: +iritkatriel ___

[issue13561] os.listdir documentation should mention surrogateescape

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good, apart from a missing “the”, but I think it should be expanded: Right now it tells that surrogateescape is used, but IMO it would be more useful if it also mentioned practical implications, i.e. what Michael “The Beard” Foord

[issue13561] os.listdir documentation should mention surrogateescape

2011-12-17 Thread misdre
misdre misdre+pyt...@gmail.com added the comment: Added a small patch to mention surrogateescape and PEP 383. -- keywords: +patch nosy: +misdre Added file: http://bugs.python.org/file23998/listdir-pep383.patch ___ Python tracker

[issue13561] os.listdir documentation should mention surrogateescape

2011-12-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you please write a doc patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13561 ___

[issue13561] os.listdir documentation should mention surrogateescape

2011-12-10 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, haypo, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13561 ___ ___

[issue13561] os.listdir documentation should mention surrogateescape

2011-12-08 Thread Michael Foord
New submission from Michael Foord mich...@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