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 vstinner
Recipients loewis, vstinner
Date 2010-09-10.11:06:24
SpamBayes Score 8.3138394e-07
Marked as misclassified No
Message-id <1284116786.01.0.32389952197.issue9820@psf.upfronthosting.co.za>
In-reply-to
Content
> os.listdir(b'listdir') should raise an error (and not ignore 
> the filename or replaces unencodable characters by b'?').

To avoid the error, a solution is to support the PEP 383 on Windows (for the mbcs encoding). I opened a separated issue for that: #9821.

But support PEP 383 will not fix this issue because the current implementation of listdir(b'.') doesn't use the Python codec, but use raw bytes filenames (use the ANSI API).
History
Date User Action Args
2010-09-10 11:06:26vstinnersetrecipients: + vstinner, loewis
2010-09-10 11:06:26vstinnersetmessageid: <1284116786.01.0.32389952197.issue9820@psf.upfronthosting.co.za>
2010-09-10 11:06:24vstinnerlinkissue9820 messages
2010-09-10 11:06:24vstinnercreate