This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Atle.Pedersen, ezio.melotti, pitrou
Date 2012-01-05.20:23:42
SpamBayes Score 5.421331e-06
Marked as misclassified No
Message-id <1325795023.34.0.478284090844.issue13717@psf.upfronthosting.co.za>
In-reply-to
Content
The file tree contains a file which has an undecodable character in it. It ends up mangled as specified in PEP 383.
Priting such filenames is not directly supported (since they have invalid characters in them), but you can workaround it in several ways, for example escaping all non-ASCII chars: `print(ascii(f))`.

(note that opening the file will still work fine; only outputting the filename without special care will fail)

Python 2 is different since it doesn't attempt to decode filenames at all, it just treats them as opaque bytes.
History
Date User Action Args
2012-01-05 20:23:43pitrousetrecipients: + pitrou, ezio.melotti, Atle.Pedersen
2012-01-05 20:23:43pitrousetmessageid: <1325795023.34.0.478284090844.issue13717@psf.upfronthosting.co.za>
2012-01-05 20:23:42pitroulinkissue13717 messages
2012-01-05 20:23:42pitroucreate