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
日期 2008-07-18.12:31:56
SpamBayes Score 0.0014605124
Marked as misclassified
Message-id <1216384320.2.0.801541614521.issue3362@psf.upfronthosting.co.za>
In-reply-to
内容
A work-around when using python from a shell environment (e.g. from a
bash shell in Terminal) is to issue

export __CF_USER_TEXT_ENCODING=0x1F5:0:0

before starting python. I haven't yet worked out how to apply this to
GUI apps. I tried editing ~/.MacOSX/environment.plist and
~/.CFUserTextEncoding but neither strategy prevents the crash.

I assume the fix works because it means one of the explicitly listed
encodings matches so things never get as far as the code which triggers
the error.

Without the fix, my environment contained

__CF_USER_TEXT_ENCODING=0x1F5:39:79

which does not, apparently, correspond to any of the encodings
explicitly listed in _localemodule.c.

- cfr
历史
日期 用户 动作 参数
2008-07-18 12:32:01cfr修改spambayes_score: 0.00146051 -> 0.0014605124
recipients: + cfr, loewis
2008-07-18 12:32:00cfr修改spambayes_score: 0.00146051 -> 0.00146051
messageid: <1216384320.2.0.801541614521.issue3362@psf.upfronthosting.co.za>
2008-07-18 12:31:58cfr链接issue3362 messages
2008-07-18 12:31:57cfr创建