[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

Hirokazu Yamamoto report at bugs.python.org
Thu Mar 20 06:47:49 CET 2008


Hirokazu Yamamoto <ocean-city at users.sourceforge.net> added the comment:

> (I assumed get_length_in_bytes(f, " ", 1) == 1 but I'm not sure
>  this is always true in other platforms. Probably nicer and more
>  general solution may exist)

This assumption still lives, but I cannot find better solution.
I'm thinking now attached patch is good enough.

Added file: http://bugs.python.org/file9786/fix.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2382>
__________________________________


More information about the Python-bugs-list mailing list