[Python-checkins] r57727 - python/trunk/Objects/unicodeobject.c
walter.doerwald
python-checkins at python.org
Thu Aug 30 17:34:55 CEST 2007
Author: walter.doerwald
Date: Thu Aug 30 17:34:55 2007
New Revision: 57727
Modified:
python/trunk/Objects/unicodeobject.c
Log:
Set startinpos before calling the error handler.
Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c (original)
+++ python/trunk/Objects/unicodeobject.c Thu Aug 30 17:34:55 2007
@@ -1028,6 +1028,7 @@
}
}
else if (SPECIAL(ch,0,0)) {
+ startinpos = s-starts;
errmsg = "unexpected special character";
s++;
goto utf7Error;
More information about the Python-checkins
mailing list