➜

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.

作者 loewis
收信人 barry, christian.heimes, lemburg, loewis, vstinner
日期 2008-10-30.22:14:19
SpamBayes Score 3.146556e-09
Marked as misclassified 否
Message-id <1225404861.5.0.864210967508.issue4213@psf.upfronthosting.co.za>
In-reply-to
内容
> The solution is elegant and works well.

I can't agree with that evaluation. In cases where Python would fail
without this patch (i.e. because the file system encoding cannot be
found during startup), this solution doesn't work well in general - it
only works if the file system encoding happens to be UTF-8. If the file
system encoding is not in the list of "builtin" codec names, startup
would still fail.

r67057 addresses this case in a somewhat more general manner, by falling
back to ASCII during startup, for encoding file names. This should work
in the usual case where Python is in /usr/bin (say), but it's still
possible to make it fail, e.g. if the codecs are in /home/Питон (say),
on a system that uses koi8-r as the file system encoding, this bug would
persist despite the two patches that have been applied.
历史
日期 用户 动作 参数
2008-10-30 22:14:21loewis修改recipients: + loewis, lemburg, barry, vstinner, christian.heimes
2008-10-30 22:14:21loewis修改messageid: <1225404861.5.0.864210967508.issue4213@psf.upfronthosting.co.za>
2008-10-30 22:14:20loewis链接issue4213 messages
2008-10-30 22:14:19loewis创建