STINNER Victor <victor.stin...@gmail.com> added the comment: The patch is correct according to the PEP 263:
If a source file uses both the UTF-8 BOM mark signature and a magic encoding comment, the only allowed encoding for the comment is 'utf-8'. Any other encoding will cause an error. The fix should also be applied to 3.2. (Note: Python 3.1 doesn't accept bugfixes anymore.) ---------- components: +Unicode nosy: +ezio.melotti, haypo versions: -Python 3.1 Added file: http://bugs.python.org/file25825/detect_encoding.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14990> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com