Report unknown-8bit too

This commit is contained in:
Alexandre Aubin 2021-10-23 17:05:45 +02:00
parent d910c59d76
commit 1062a8d22e

View file

@ -493,7 +493,7 @@ class App(TestSuite):
@test()
def bad_encoding(self):
cmd = "file --mime-encoding $(find %s/ -type f) | grep 'iso-8859-1' || true" % self.path
cmd = "file --mime-encoding $(find %s/ -type f) | grep 'iso-8859-1\|unknown-8bit' || true" % self.path
bad_encoding_files = subprocess.check_output(cmd, shell=True).decode('utf-8').strip().split("\n")
for file_ in bad_encoding_files:
if not file_: