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 cfr
Recipients cfr, loewis, pitrou
Date 2008-08-12.00:17:41
SpamBayes Score 4.4215554e-08
Marked as misclassified No
Message-id <1218500268.74.0.399971571504.issue3362@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-08-12 00:17:48cfrsetrecipients: + cfr, loewis, pitrou
2008-08-12 00:17:48cfrsetmessageid: <1218500268.74.0.399971571504.issue3362@psf.upfronthosting.co.za>
2008-08-12 00:17:42cfrlinkissue3362 messages
2008-08-12 00:17:41cfrcreate