From 9d04542cc96b9b23c22dd55880e51fe063604ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Thu, 30 Aug 2007 15:34:55 +0000 Subject: Set startinpos before calling the error handler. --- Objects/unicodeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index f54e7b2..26aa753 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; -- cgit v0.12