Message120933
I am attaching a patch that seems to fix the issue. Note that I considered fixing the problem in parsetok.c where offset is originally computed, but this is part of pgen which has to be compiled without unicode support.
The test case suitable to be included in unittests is:
try:
eval(b'\xc2\xa1'.decode('utf-8'))
except SyntaxError as err:
assert(err.offset == 1) |
|
Date |
User |
Action |
Args |
2010-11-11 00:05:58 | belopolsky | set | recipients:
+ belopolsky, lemburg, vstinner, ezio.melotti |
2010-11-11 00:05:58 | belopolsky | set | messageid: <1289433958.33.0.737688451975.issue10382@psf.upfronthosting.co.za> |
2010-11-11 00:04:06 | belopolsky | link | issue10382 messages |
2010-11-11 00:04:06 | belopolsky | create | |
|