Serhiy Storchaka added the comment: Yes, this is very similar to issue13153. Both these issues can have same solution or can have different solutions. This issue relates to more realistic situation and therefore is more important.
Here is simple and almost working solution for this issue. Unfortunately it works incorrectly when astral characters are encountered in raw string literals. More mature solution should parse sources and convert raw string literals containing astral characters to non-raw string literals. But this will not work with invalid Python files and non-Python files. I afraid this issue has not perfect solution. The question is which imperfect solution and compromise we will decided enough acceptable. ---------- assignee: -> serhiy.storchaka components: +Tkinter, Unicode keywords: +patch nosy: +haypo versions: +Python 2.7, Python 3.5 -Python 3.3 Added file: http://bugs.python.org/file35929/idle_fix_non_bmp.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21084> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com