]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())
authorWalter Dörwald <walter@livinglogic.de>
Mon, 19 Nov 2007 12:41:10 +0000 (12:41 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 19 Nov 2007 12:41:10 +0000 (12:41 +0000)
commit183744d6b9d45e77c3bd2dc30a6eb41c9f1c58f1
tree9999590e5cb293ba30ebc9133ac0860f3999bcc9
parentfc7e72d1c6f9977d027dcea827707f8cbd5fa4bc
Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())
calling codecs.utf_8_decode() with final==True, which falled with incomplete
byte sequences. Fix and test by James G. Sack.
Lib/encodings/utf_8_sig.py
Lib/test/test_codecs.py