From 4933fa8bf5119e605e53f06a632cfabfcd991032 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Sun, 24 Mar 2024 18:02:56 +0100 Subject: [Buildsystem] Fix encoding when reading files --- misc/scripts/check_ci_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/scripts/check_ci_log.py') diff --git a/misc/scripts/check_ci_log.py b/misc/scripts/check_ci_log.py index d979d373de..d024a3e375 100755 --- a/misc/scripts/check_ci_log.py +++ b/misc/scripts/check_ci_log.py @@ -9,7 +9,7 @@ if len(sys.argv) < 2: fname = sys.argv[1] -with open(fname.strip(), "r") as fileread: +with open(fname.strip(), "r", encoding="utf-8") as fileread: file_contents = fileread.read() # If find "ERROR: AddressSanitizer:", then happens invalid read or write -- cgit v1.2.3