STINNER Victor <vstin...@redhat.com> added the comment:
> I agreed with Serhiy. I also found the function decode the output with > latin-1, I think it will be better to use utf-8 instead. Decoding from UTF-8 can fail with UnicodeDecodeError, whereas decoding from latin-1 never fails. file output is ASCII, so I don't see the point of using UTF-8. Currently, the command displays the filename, but I don't think that we should care of the encoding of the filename. > I think that the "-b" option should be restored. That, or strip/skip the filename in the output? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35348> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com