Issue #13913: normalize utf-8 codec name in UTF-8 decoder

This commit is contained in:
Victor Stinner 2012-02-14 01:17:45 +01:00
parent e31ddedb0e
commit cbe01342bc

View file

@ -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;