[issue9598] untabify.py fails on files that contain non-ascii characters

Alexander Belopolsky report at bugs.python.org
Wed Sep 8 02:29:53 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Tue, Sep 7, 2010 at 8:08 PM, Éric Araujo <report at bugs.python.org> wrote:
..
> Why would it be the job of untabify to report invalid non-ASCII characters in C files?
>
Since untabify works by loading C code as text, it has to assume some
encoding.   Failing with uncaught decode error (as it currently does
on non UTF-8 source) is not very user friendly.  For example, the
diagnostic does not report the position of the offending character and
does not explain how to fix the source.

----------

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


More information about the Python-bugs-list mailing list