[issue8912] `make patchcheck` should check the whitespace of .c/.h files

Alexander Belopolsky report at bugs.python.org
Sat Aug 14 00:56:32 CEST 2010


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

Note directly related to this issue, but untabify.py fails on files that contain non-ascii characters.  For example:

$ ./python.exe Tools/scripts/untabify.py Modules/_heapqmodule.c
Traceback (most recent call last):
    ...
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 in position 173: invalid continuation byte


I am not sure what relevant C standard has to say about using non-ascii characters in comments, but the checking tool should not fail with a traceback in such situation.

----------

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


More information about the Python-bugs-list mailing list