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