Movatterモバイル変換


[0]ホーム

URL:


homepage

Message346152

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorxtreak
RecipientsRalfM, ezio.melotti, methane, serhiy.storchaka, vstinner, xtreak
Date2019-06-20.18:24:02
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1561055043.35.0.931574681081.issue24214@roundup.psfhosted.org>
In-reply-to
Content
This change seems to have caused test failure reported inhttps://github.com/python-hyper/wsproto/issues/126from codecs import getincrementaldecoderdecoder = getincrementaldecoder("utf-8")()print(decoder.decode(b'f\xf1\xf6rd', False))# With this commit7a465cb5ee➜  cpython git:(7a465cb5ee) ./python.exe /tmp/foo.pyfBefore7a465cb5ee➜  cpython git:(38f4e468d4) ./python.exe /tmp/foo.pyTraceback (most recent call last):  File "/tmp/foo.py", line 3, in <module>    print(decoder.decode(b'f\xf1\xf6rd', False))  File "/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/codecs.py", line 322, in decode    (result, consumed) = self._buffer_decode(data, self.errors, final)UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 1: invalid continuation byte
History
DateUserActionArgs
2019-06-20 18:24:03xtreaksetrecipients: +xtreak,vstinner,ezio.melotti,methane,serhiy.storchaka,RalfM
2019-06-20 18:24:03xtreaksetmessageid: <1561055043.35.0.931574681081.issue24214@roundup.psfhosted.org>
2019-06-20 18:24:03xtreaklinkissue24214 messages
2019-06-20 18:24:02xtreakcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp