laney@raleigh> python3.7 --version
Python 3.7.3
laney@raleigh> python3.7 -c "import codecs;
codecs.open('/home/laney/temp/sphinx/tests/roots/test-root/wrongenc.inc',
encoding='utf-8-sig', errors='strict').read()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.7/codecs.py", line 701, in read
return self.reader.read(size)
File "/usr/lib/python3.7/codecs.py", line 504, in read
newchars, decodedbytes = self.decode(data, self.errors)
File "/usr/lib/python3.7/encodings/utf_8_sig.py", line 117, in decode
return codecs.utf_8_decode(input, errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdf in position 70:
invalid continuation byte
laney@raleigh> lxc exec e-amd64 -- python3.7 --version
Python 3.7.4rc1
laney@raleigh> lxc exec e-amd64 -- python3.7 -c "import codecs;
codecs.open('/home/laney/temp/sphinx/tests/roots/test-root/wrongenc.inc',
encoding='utf-8-sig', errors='strict').read()"
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1834236
Title:
codecs.open(errors='strict') doesn't fail on invalid encoding with
python3.7.4 RC1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.7/+bug/1834236/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs