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.

作者 r.david.murray
收信人 Arfrever, ezio.melotti, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
日期 2013-08-23.23:28:45
SpamBayes Score -1.0
Marked as misclassified
Message-id <1377300525.79.0.381495580574.issue18814@psf.upfronthosting.co.za>
In-reply-to
内容
The email package uses surrogateescape to store unknown bytes in unicode strings, just as with the handle-bad-data-from-os API surrogateescape was introduced for.  (For the same reason: the source data may have improperly encoded bytes that we must nevertheless preserve).  What action certain parts of the code takes differs depending on whether or not there are such encoded bytes in the string.  So the code needs to check and branch based on that.

The utility function is email.utils._has_surrogates.  You can grep the email source to see where it is used, if you like.
历史
日期 用户 动作 参数
2013-08-23 23:28:45r.david.murray修改recipients: + r.david.murray, ncoghlan, pitrou, vstinner, ezio.melotti, Arfrever, serhiy.storchaka
2013-08-23 23:28:45r.david.murray修改messageid: <1377300525.79.0.381495580574.issue18814@psf.upfronthosting.co.za>
2013-08-23 23:28:45r.david.murray链接issue18814 messages
2013-08-23 23:28:45r.david.murray创建