summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-02-14 00:17:45 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-02-14 00:17:45 (GMT)
commitcbe01342bc943cab3afec289ca679684fbd0ab9e (patch)
tree66a141ec03553228823731aa537f64be400dfe9b /Objects
parente31ddedb0e5d0151cd4d7821365690ba9d22386d (diff)
downloadcpython-cbe01342bc943cab3afec289ca679684fbd0ab9e.zip
cpython-cbe01342bc943cab3afec289ca679684fbd0ab9e.tar.gz
cpython-cbe01342bc943cab3afec289ca679684fbd0ab9e.tar.bz2
Issue #13913: normalize utf-8 codec name in UTF-8 decoder
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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;