mirror of
https://github.com/godotengine/godot.git
synced 2026-01-01 05:49:28 +03:00
[Buildsystem] Fix encoding when reading files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user