[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

Éric Araujo report at bugs.python.org
Thu Oct 21 13:44:19 CEST 2010


Éric Araujo <merwok at netwok.org> added the comment:

When working as a filter, reindent should use sys.{stdin,stdout}.encoding (defaulting to sys.getdefaultencoding()) for reading and writing, respectively.  Detecting encoding on streams is not worth it IMO.  People can set PYTHONIOENCODING for baroque needs.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10117>
_______________________________________


More information about the Python-bugs-list mailing list