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.

作者 vstinner
收信人 Arfrever, amaury.forgeotdarc, benjamin.peterson, brett.cannon, eric.araujo, georg.brandl, r.david.murray, vstinner
日期 2010-12-14.23:47:56
SpamBayes Score 2.2871345e-06
Marked as misclassified
Message-id <1292370477.75.0.333161707077.issue3080@psf.upfronthosting.co.za>
In-reply-to
内容
> Haypo describes his complicated patch as "useful on Windows", 
> but not critical

Usecase on Windows: your japanese friend gives you an USB key (eg. created on Windows with code page 932) with his Python project, you cannot run it on your english speaking Windows (eg. code page 1252), because it loads Python modules with japanese characters in their paths.

It works if all paths are encodable to your ANSI code page. It doesn't work if a least one character of one path is not encodable to your ANSI code page.

I don't know if this usecase is common or not.

Note: the FAT file system of the USB key stores filenames as UTF-16 (and not in the user code page).
历史
日期 用户 动作 参数
2010-12-14 23:47:57vstinner修改recipients: + vstinner, brett.cannon, georg.brandl, amaury.forgeotdarc, benjamin.peterson, eric.araujo, Arfrever, r.david.murray
2010-12-14 23:47:57vstinner修改messageid: <1292370477.75.0.333161707077.issue3080@psf.upfronthosting.co.za>
2010-12-14 23:47:56vstinner链接issue3080 messages
2010-12-14 23:47:56vstinner创建