mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Buildsystem] Fix encoding when reading files
This commit is contained in:
parent
99ff024f78
commit
4933fa8bf5
10 changed files with 24 additions and 24 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue