From: Walter Dörwald Date: Thu, 30 Aug 2007 15:35:26 +0000 (+0000) Subject: Set startinpos before calling the error handler. X-Git-Tag: v3.0a1~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b65c7598817864397a3077cf1a914b3e566bc56;p=thirdparty%2FPython%2Fcpython.git Set startinpos before calling the error handler. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 24b2bf384eb9..208bc88636c1 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;