[issue7922] Python 3's 2to3 does not handle non-ascii source files
report at bugs.python.org
Sat Feb 13 03:19:15 CET 2010
Benjamin Peterson <benjamin at python.org> added the comment:
2010/2/12 mike bayer <report at bugs.python.org>:
> mike bayer <mike_mp at zzzcomputing.com> added the comment:
> yes, its handled:
> WARNING: couldn't encode test.py's diff for your terminal
> is that fix specific to 2to3 or is that just how "print" works in 3.2 ?
It's just that whatever python guesses your terminal encoding is (try
print(sys.stdin.encoding)) might not be able to handle whatever
characters are in the source file, so we just don't print it. You can
change the default encoding with the PYTHONIOENCODING env var.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list