From cbe01342bc943cab3afec289ca679684fbd0ab9e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 14 Feb 2012 01:17:45 +0100 Subject: Issue #13913: normalize utf-8 codec name in UTF-8 decoder --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index f51d4d0..70856f5 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; -- cgit v0.12