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.

作者 cfr
收信人 cfr, loewis, pitrou
日期 2008-08-12.00:17:41
SpamBayes Score 4.4215554e-08
Marked as misclassified
Message-id <1218500268.74.0.399971571504.issue3362@psf.upfronthosting.co.za>
In-reply-to
内容
I admit to not understanding the code involved, but I *thought* that the
problem involved cases where there *is* a preferred encoding in the
environment but it is not one of those covered by:
    case kCFStringEncodingMacRoman: return "mac-roman";
    case kCFStringEncodingMacGreek: return "mac-greek";
    case kCFStringEncodingMacCyrillic: return "mac-cyrillic";
    case kCFStringEncodingMacTurkish: return "mac-turkish";
    case kCFStringEncodingMacIcelandic: return "mac-icelandic";
The work around basically ensures the preferred encoding given by the
environment is one of those listed so that the rest of that part of the
code doesn't run. I don't think that my crash, at least, resulted from
no preferred encoding being defined in the environment but maybe
something is going wrong in the locale module because it is not one from
the standard list.

Maybe?
历史
日期 用户 动作 参数
2008-08-12 00:17:48cfr修改recipients: + cfr, loewis, pitrou
2008-08-12 00:17:48cfr修改messageid: <1218500268.74.0.399971571504.issue3362@psf.upfronthosting.co.za>
2008-08-12 00:17:42cfr链接issue3362 messages
2008-08-12 00:17:41cfr创建