Author ezio.melotti
Recipients Ringding, belopolsky, dangra, ezio.melotti, lemburg, pitrou, serhiy.storchaka, sjmachin, spatz123, vstinner
Date 2012-05-17.17:36:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337276169.02.0.132543275688.issue8271@psf.upfronthosting.co.za>
In-reply-to
Content
> 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?
History
Date User Action Args
2012-05-17 17:36:09ezio.melottisetrecipients: + ezio.melotti, lemburg, sjmachin, belopolsky, pitrou, vstinner, Ringding, dangra, spatz123, serhiy.storchaka
2012-05-17 17:36:09ezio.melottisetmessageid: <1337276169.02.0.132543275688.issue8271@psf.upfronthosting.co.za>
2012-05-17 17:36:08ezio.melottilinkissue8271 messages
2012-05-17 17:36:08ezio.melotticreate