mirror of https://github.com/python/cpython
(Merge 3.2) Issue #13913: normalize utf-8 codec name in UTF-8 decoder
This commit is contained in:
commit
c3a6b02d70
|
@ -4794,7 +4794,7 @@ decode_utf8_errors(const char *starts,
|
|||
utf8Error:
|
||||
if (unicode_decode_call_errorhandler(
|
||||
errors, &errorHandler,
|
||||
"utf8", errmsg,
|
||||
"utf-8", errmsg,
|
||||
&starts, &e, &startinpos, &endinpos, &exc, &s,
|
||||
&unicode, &i))
|
||||
goto onError;
|
||||
|
|
Loading…
Reference in New Issue