This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Peter Ludemann
Recipients Peter Ludemann, ezio.melotti, vstinner
Date 2019-12-29.17:42:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577641330.32.0.40121523181.issue39154@roundup.psfhosted.org>
In-reply-to
Content
In general, 'utf8' and 'utf-8' are interchangeable in the codecs (and in many parts of the Python library). However, 'utf8-sig' is missing ... and it happens to also be generated by lib2to3.tokenize.detect_encoding.

>>> import codecs
>>> codecs.getincrementaldecoder('utf-8-sig')()
<encodings.utf_8_sig.IncrementalDecoder object at 0x7fecbcdbbc10>
>>> codecs.getincrementaldecoder('utf8-sig')()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/codecs.py", line 987, in getincrementaldecoder
    decoder = lookup(encoding).incrementaldecoder
LookupError: unknown encoding: utf8-sig
History
Date User Action Args
2019-12-30 07:37:27ned.deilyunlinkissue39154 messages
2019-12-29 17:42:10Peter Ludemannsetrecipients: + Peter Ludemann, vstinner, ezio.melotti
2019-12-29 17:42:10Peter Ludemannsetmessageid: <1577641330.32.0.40121523181.issue39154@roundup.psfhosted.org>
2019-12-29 17:42:10Peter Ludemannlinkissue39154 messages
2019-12-29 17:42:10Peter Ludemanncreate