[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Oct 1 10:14:01 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
For the moment, I'd suggest that one unicode character has a the same
with as the space character, assuming that stdout.encoding correctly
matches the terminal.
Then the C implementation could do something similar to the statements I
added in traceback.py:
offset = len(line.encode('utf-8')[:offset].decode('utf-8'))
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2382>
_______________________________________
More information about the Python-bugs-list
mailing list