[Buildsystem] Fix encoding when reading files

This commit is contained in:
A Thousand Ships 2024-03-24 18:02:56 +01:00
parent 99ff024f78
commit 4933fa8bf5
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
10 changed files with 24 additions and 24 deletions

View file

@ -101,7 +101,7 @@ TEST_CASE("[{name_pascal_case}] Example test case") {{
if args.invasive:
print("Trying to insert include directive in test_main.cpp...")
with open("test_main.cpp", "r") as file:
with open("test_main.cpp", "r", encoding="utf-8") as file:
contents = file.read()
match = re.search(r'#include "tests.*\n', contents)