diff Objects/unicodeobject.c @ 43053:6fcb873f396c legacy-trunk

Set startinpos before calling the error handler.
author Walter Dörwald <walter@livinglogic.de>
date Thu, 30 Aug 2007 15:34:55 +0000
parents 973da2ebc2d0
children 124cbf1a0e3e
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Thu Aug 30 15:30:09 2007 +0000
+++ b/Objects/unicodeobject.c	Thu Aug 30 15:34:55 2007 +0000
@@ -1028,6 +1028,7 @@
             }
         }
         else if (SPECIAL(ch,0,0)) {
+            startinpos = s-starts;
             errmsg = "unexpected special character";
             s++;
 	        goto utf7Error;