diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 24b2bf384eb..208bc88636c 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1507,6 +1507,7 @@ PyObject *PyUnicode_DecodeUTF7(const char *s, } } else if (SPECIAL(ch,0,0)) { + startinpos = s-starts; errmsg = "unexpected special character"; s++; goto utf7Error;