mirror of
https://github.com/python/cpython.git
synced 2025-07-15 07:15:18 +00:00
Issue #13913: normalize utf-8 codec name in UTF-8 decoder
This commit is contained in:
parent
e31ddedb0e
commit
cbe01342bc
1 changed files with 1 additions and 1 deletions
|
@ -2763,7 +2763,7 @@ PyObject *PyUnicode_DecodeUTF8Stateful(const char *s,
|
|||
outpos = p-PyUnicode_AS_UNICODE(unicode);
|
||||
if (unicode_decode_call_errorhandler(
|
||||
errors, &errorHandler,
|
||||
"utf8", errmsg,
|
||||
"utf-8", errmsg,
|
||||
&starts, &e, &startinpos, &endinpos, &exc, &s,
|
||||
&unicode, &outpos, &p))
|
||||
goto onError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue