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 serhiy.storchaka
Recipients amaury.forgeotdarc, eric.araujo, ezio.melotti, jkloth, larry, loewis, r.david.murray, serhiy.storchaka, techtonik, vstinner
Date 2012-12-14.21:02:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355519306.2581.7.camel@raxxla>
In-reply-to <1355516094.66.0.620561188221.issue16656@psf.upfronthosting.co.za>
Content
> Who's trying (and failing) to encode the filename?

Windows. File created using Unicode API and stored UTF-16 encoded in
NTFS. Windows fails to represent this filename using ANSI API.

Here is a patch against 2.7 which always uses Unicode API in listdir()
and tries to encode filenames to str if str argument used.
Files
File name Uploaded
listdir_unicode-2.7.patch serhiy.storchaka, 2012-12-14.21:02:07
History
Date User Action Args
2012-12-14 21:02:07serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, amaury.forgeotdarc, vstinner, larry, techtonik, jkloth, ezio.melotti, eric.araujo, r.david.murray
2012-12-14 21:02:07serhiy.storchakalinkissue16656 messages
2012-12-14 21:02:07serhiy.storchakacreate