R. David Murray added the comment: For those of us without fancy input methods, I was able to see the same problem using a simple non-ascii letter (an accented a: รก. You will note that my stdin encoding ought to be utf-8, so I'm not sure why it fails (but I didn't check that). Removing the lines in question makes it work, but as Martin says in the referenced issue I won't be surprised if that breaks working with a file that has a non-utf8 coding cookie.
If Martin sees no way to make it work in Python2 it makes it pretty unlikely we'll find a fix :(. ---------- resolution: invalid -> stage: committed/rejected -> _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17348> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com