消息 [135422]
> 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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-05-07 09:08:39 | cdqzzy | 修改 | recipients:
+ cdqzzy, lemburg, terry.reedy, vstinner, ezio.melotti |
| 2011-05-07 09:08:39 | cdqzzy | 修改 | messageid: <1304759319.16.0.657010046531.issue12016@psf.upfronthosting.co.za> |
| 2011-05-07 09:08:38 | cdqzzy | 链接 | issue12016 messages |
| 2011-05-07 09:08:38 | cdqzzy | 创建 | |
|