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.

作者 serhiy.storchaka
收信人 amaury.forgeotdarc, eric.araujo, ezio.melotti, jkloth, larry, loewis, r.david.murray, serhiy.storchaka, techtonik, vstinner
日期 2012-12-14.21:02:07
SpamBayes Score -1.0
Marked as misclassified
Message-id <1355519306.2581.7.camel@raxxla>
In-reply-to <1355516094.66.0.620561188221.issue16656@psf.upfronthosting.co.za>
内容
> 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.
文件
文件名 上传时间
listdir_unicode-2.7.patch serhiy.storchaka, 2012-12-14.21:02:07
历史
日期 用户 动作 参数
2012-12-14 21:02:07serhiy.storchaka修改recipients: + serhiy.storchaka, loewis, amaury.forgeotdarc, vstinner, larry, techtonik, jkloth, ezio.melotti, eric.araujo, r.david.murray
2012-12-14 21:02:07serhiy.storchaka链接issue16656 messages
2012-12-14 21:02:07serhiy.storchaka创建