Kaydet (Commit) 9d04542c authored tarafından Walter Dörwald's avatar Walter Dörwald

Set startinpos before calling the error handler.

üst 8757878b
...@@ -1028,6 +1028,7 @@ PyObject *PyUnicode_DecodeUTF7(const char *s, ...@@ -1028,6 +1028,7 @@ PyObject *PyUnicode_DecodeUTF7(const char *s,
} }
} }
else if (SPECIAL(ch,0,0)) { else if (SPECIAL(ch,0,0)) {
startinpos = s-starts;
errmsg = "unexpected special character"; errmsg = "unexpected special character";
s++; s++;
goto utf7Error; 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