commit | 9d04542cc96b9b23c22dd55880e51fe063604ddb | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Thu Aug 30 15:34:55 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Thu Aug 30 15:34:55 2007 +0000 |
tree | 2366c5bb5eb4d5af3d3422b877674ceed4ca98ff | |
parent | 8757878b12c540f7b2b66738860e3433bb0d7302 [diff] [blame] |
Set startinpos before calling the error handler.
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 @@ } } else if (SPECIAL(ch,0,0)) { + startinpos = s-starts; errmsg = "unexpected special character"; s++; goto utf7Error;