1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[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
10 changed files with 24 additions and 24 deletions

View File

@@ -69,7 +69,7 @@ for f in sys.argv[1:]:
# In a second pass, we skip all consecutive comment lines starting with "/*",
# then we can append the rest (step 2).
with open(fname.strip(), "r") as fileread:
with open(fname.strip(), "r", encoding="utf-8") as fileread:
line = fileread.readline()
header_done = False