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 cdqzzy
Recipients cdqzzy, ezio.melotti, lemburg, terry.reedy, vstinner
Date 2011-05-07.09:08:38
SpamBayes Score 2.0157563e-07
Marked as misclassified No
Message-id <1304759319.16.0.657010046531.issue12016@psf.upfronthosting.co.za>
In-reply-to
Content
> So the correct result for b'\xff\n'.decode('gb2312', 'replace') is u'?\n'?

I think it should be so. This behavior does not leave out possible information, has no side-effect on later decodings, and should the '\n'  indeed be redundant, an output of u'?\n' would unlikely cause confusions.

Though, I have no knowledge on this subject code-wise. If a change of the behavior will have an impact on performance, maybe the change should not come in.
History
Date User Action Args
2011-05-07 09:08:39cdqzzysetrecipients: + cdqzzy, lemburg, terry.reedy, vstinner, ezio.melotti
2011-05-07 09:08:39cdqzzysetmessageid: <1304759319.16.0.657010046531.issue12016@psf.upfronthosting.co.za>
2011-05-07 09:08:38cdqzzylinkissue12016 messages
2011-05-07 09:08:38cdqzzycreate