➜

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.

作者 ezio.melotti
收信人 Ringding, belopolsky, dangra, ezio.melotti, lemburg, pitrou, serhiy.storchaka, sjmachin, spatz123, vstinner
日期 2012-05-17.17:36:08
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1337276169.02.0.132543275688.issue8271@psf.upfronthosting.co.za>
In-reply-to
内容
> Tests fails, but I'm not sure that the tests are correct.

> b'\xe0\x00' raises 'unexpected end of data' and not 'invalid
> continuation byte'. This is terminological issue.

This might be just because it first checks if there two more bytes before checking if they are valid, but 'invalid continuation byte' works too.

> b'\xe0\x80'.decode('utf-8', 'replace') returns one U+FFFD and not
> two. I don't think that is right.

Why not?
历史
日期 用户 动作 参数
2012-05-17 17:36:09ezio.melotti修改recipients: + ezio.melotti, lemburg, sjmachin, belopolsky, pitrou, vstinner, Ringding, dangra, spatz123, serhiy.storchaka
2012-05-17 17:36:09ezio.melotti修改messageid: <1337276169.02.0.132543275688.issue8271@psf.upfronthosting.co.za>
2012-05-17 17:36:08ezio.melotti链接issue8271 messages
2012-05-17 17:36:08ezio.melotti创建