From: Walter Dörwald Date: Thu, 30 Aug 2007 15:34:55 +0000 (+0000) Subject: Set startinpos before calling the error handler. X-Git-Tag: v2.6a1~1383 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d04542cc96b9b23c22dd55880e51fe063604ddb;p=thirdparty%2FPython%2Fcpython.git Set startinpos before calling the error handler. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index f54e7b23a829..26aa7533bab4 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1028,6 +1028,7 @@ PyObject *PyUnicode_DecodeUTF7(const char *s, } } else if (SPECIAL(ch,0,0)) { + startinpos = s-starts; errmsg = "unexpected special character"; s++; goto utf7Error;