STINNER Victor added the comment:
> The utf-8 alias should be added to the utf_8 codec block inside aliases.py
Codec names are normalized by encodings.normalize_encoding():
>>> encodings.normalize_encoding(' Utf-8 ')
'Utf_8'
And then converted to lower case, so there is no need to all syntaxes of
"utf-8", it already works ;-)
>>> codecs.lookup(' Utf-8 ').name
'utf-8'
----------
nosy: +haypo
resolution: -> not a bug
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28101>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com