diff Objects/unicodeobject.c @ 43054:d83c2b21ac26

Set startinpos before calling the error handler.
author Walter Dörwald <walter@livinglogic.de>
date Thu, 30 Aug 2007 15:35:26 +0000
parents 227ccdd0f8db
children 4e6b4ba60c3b
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Thu Aug 30 15:29:21 2007 +0000
+++ b/Objects/unicodeobject.c	Thu Aug 30 15:35:26 2007 +0000
@@ -1507,6 +1507,7 @@
             }
         }
         else if (SPECIAL(ch,0,0)) {
+            startinpos = s-starts;
             errmsg = "unexpected special character";
             s++;
             goto utf7Error;