[Python-checkins] cpython (3.2): Issue #13913: normalize utf-8 codec name in UTF-8 decoder

victor.stinner python-checkins at python.org
Tue Feb 14 01:17:35 CET 2012


http://hg.python.org/cpython/rev/c861c0a7f40c
changeset:   74918:c861c0a7f40c
branch:      3.2
parent:      74913:586d688dcf7f
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Tue Feb 14 01:17:45 2012 +0100
summary:
  Issue #13913: normalize utf-8 codec name in UTF-8 decoder

files:
  Objects/unicodeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2763,7 +2763,7 @@
         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;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list