From 824650411eacd8b0e64036705859164112bf51d3 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 23 Apr 2018 01:37:23 +0300 Subject: Final encoding fix. I sincerely hope sufficient amounts of goats have now been sacrificed at the altar of Debian Locales so things will actually work and I can get to sleep. --- run_project_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_project_tests.py b/run_project_tests.py index 8b7883b..8c02a9e 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -701,7 +701,10 @@ if __name__ == '__main__': if failing_tests > 0: print('\nMesonlogs of failing tests\n') for l in failing_logs: - print(l, '\n') + try: + print(l, '\n') + except UnicodeError: + print(l.encode('ascii', errors='replace').decode(), '\n') for name, dirs, skip in all_tests: dirs = (os.path.basename(x) for x in dirs) for k, g in itertools.groupby(dirs, key=lambda x: x.split()[0]): -- cgit v1.1