mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
d48475d008
utils.encoding.auto_decode() was broken when decoding Big Endian BOM byte-strings on Little Endian or vice versa. The TestEncoding.test_auto_decode_utf_16_le test was failing on Big Endian systems, such as Fedora's s390x builders. A similar test, but with BE BOM test_auto_decode_utf_16_be was added in order to reproduce this on a Little Endian system (which is much easier to come by). A regression test was added to check that all listed encodings in utils.encoding.BOMS are valid. Fixes https://github.com/pypa/pip/issues/6054
4 lines
196 B
Text
4 lines
196 B
Text
Fix ``utils.encoding.auto_decode()`` ``LookupError`` with invalid encodings.
|
|
``utils.encoding.auto_decode()`` was broken when decoding Big Endian BOM
|
|
byte-strings on Little Endian or vice versa.
|
|
|