diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-08-30 15:35:26 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-08-30 15:35:26 (GMT) |
commit | 2b65c7598817864397a3077cf1a914b3e566bc56 (patch) | |
tree | eff48739e265471292d50a87fcaf322a4bd8dbdc /Objects | |
parent | a651d3de00836e8fb798f91d4955c49097b272a8 (diff) | |
download | cpython-2b65c7598817864397a3077cf1a914b3e566bc56.zip cpython-2b65c7598817864397a3077cf1a914b3e566bc56.tar.gz cpython-2b65c7598817864397a3077cf1a914b3e566bc56.tar.bz2 |
Set startinpos before calling the error handler.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 24b2bf3..208bc88 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; |