]> granicus.if.org Git - python/commitdiff
Set startinpos before calling the error handler.
authorWalter Dörwald <walter@livinglogic.de>
Thu, 30 Aug 2007 15:34:55 +0000 (15:34 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 30 Aug 2007 15:34:55 +0000 (15:34 +0000)
Objects/unicodeobject.c

index f54e7b23a829e95607b06f0d511f3526128f71d0..26aa7533bab43440c2cbf028e00f5e9d09f21f16 100644 (file)
@@ -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;