• Serhiy Storchaka's avatar
    Issue #24848: Fixed bugs in UTF-7 decoding of misformed data: · 58c8f2bb
    Serhiy Storchaka yazdı
    1. Non-ASCII bytes were accepted after shift sequence.
    2. A low surrogate could be emitted in case of error in high surrogate.
    3. In some circumstances the '\xfd' character was produced instead of the
    replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).
    58c8f2bb
test_unicode.py 123 KB