mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
Set startinpos before calling the error handler.
This commit is contained in:
parent
8757878b12
commit
9d04542cc9
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue