diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-08-30 15:34:55 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-08-30 15:34:55 (GMT) |
commit | 9d04542cc96b9b23c22dd55880e51fe063604ddb (patch) | |
tree | 2366c5bb5eb4d5af3d3422b877674ceed4ca98ff /Objects | |
parent | 8757878b12c540f7b2b66738860e3433bb0d7302 (diff) | |
download | cpython-9d04542cc96b9b23c22dd55880e51fe063604ddb.zip cpython-9d04542cc96b9b23c22dd55880e51fe063604ddb.tar.gz cpython-9d04542cc96b9b23c22dd55880e51fe063604ddb.tar.bz2 |
Set startinpos before calling the error handler.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index f54e7b2..26aa753 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; |