Set startinpos before calling the error handler.

This commit is contained in:
Walter Dörwald 2007-08-30 15:34:55 +00:00
parent 8757878b12
commit 9d04542cc9
1 changed files with 1 additions and 0 deletions

View File

@ -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;