1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/src/pip
Miro Hrončok d48475d008 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.

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
2019-03-01 20:16:18 +01:00
..
_internal Fix utils.encoding.auto_decode() LookupError with invalid encodings 2019-03-01 20:16:18 +01:00
_vendor Update packaging to 19.0 2019-01-20 16:52:52 +05:30
__init__.py Bump for development 2019-02-20 23:00:03 +05:30
__main__.py Fix lint errors on newly covered files 2018-06-25 17:04:00 +05:30