Commit 9d04542c authored by Walter Dörwald's avatar Walter Dörwald

Set startinpos before calling the error handler.

parent 8757878b
......@@ -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;
......
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