[issue10382] Command line error marker misplaced on unicode entry

2013-06-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The latest patch at #2382 is simpler than mine, so I am closing this as duplicate. -- resolution: -> duplicate status: open -> closed superseder: -> [Py3k] SyntaxError cursor shifted if multibyte character is in line. _

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file19573/issue10382a.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: haypo> See also #2382: I wrote patches two years ago for this issue. Yes, this is the same issue. I don't want to close this as a duplicate because #2382 contains a much more ambitious set of patches. What I am trying to achieve here is similar to the

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread STINNER Victor
STINNER Victor added the comment: See also #2382: I wrote patches two years ago for this issue. -- ___ Python tracker ___ ___ Python-

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +ezio.melotti, haypo, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> ¡™£¢∞§¶•ªº File "", line 1 ¡™£¢∞§¶•ªº ^ SyntaxError: invalid character in identifier It looks like strlen() is used instead of number of characters in the decoded string. -- components: Interpreter Core mes

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 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 inc