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

index 24b2bf384eb959cd088f057651fe9db89e707e3d..208bc88636c1af4cd8ed0264a4c8940ec0f3bc12 100644 (file)
@@ -1507,6 +1507,7 @@ PyObject *PyUnicode_DecodeUTF7(const char *s,
             }
         }
         else if (SPECIAL(ch,0,0)) {
+            startinpos = s-starts;
             errmsg = "unexpected special character";
             s++;
             goto utf7Error;