From: Victor Stinner Date: Tue, 14 Feb 2012 00:17:45 +0000 (+0100) Subject: Issue #13913: normalize utf-8 codec name in UTF-8 decoder X-Git-Tag: v3.2.3rc1~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbe01342bc943cab3afec289ca679684fbd0ab9e;p=thirdparty%2FPython%2Fcpython.git Issue #13913: normalize utf-8 codec name in UTF-8 decoder --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index f51d4d04beb5..70856f54552c 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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;