Commit 2b65c759 authored by Walter Dörwald's avatar Walter Dörwald

Set startinpos before calling the error handler.

parent a651d3de
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment