diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/SCsub | 2 | ||||
-rw-r--r-- | core/core_builders.py | 8 | ||||
-rw-r--r-- | core/extension/make_interface_dumper.py | 2 | ||||
-rw-r--r-- | core/extension/make_wrappers.py | 2 | ||||
-rw-r--r-- | core/input/input_builders.py | 2 | ||||
-rw-r--r-- | core/object/make_virtuals.py | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/core/SCsub b/core/SCsub index 1f2166937a..7edf8ea88d 100644 --- a/core/SCsub +++ b/core/SCsub @@ -36,7 +36,7 @@ if "SCRIPT_AES256_ENCRYPTION_KEY" in os.environ: Exit(255) # NOTE: It is safe to generate this file here, since this is still executed serially -with open("script_encryption_key.gen.cpp", "w") as f: +with open("script_encryption_key.gen.cpp", "w", encoding="utf-8", newline="\n") as f: f.write('#include "core/config/project_settings.h"\nuint8_t script_encryption_key[32]={' + txt + "};\n") diff --git a/core/core_builders.py b/core/core_builders.py index 61b7bd695c..b941d6a272 100644 --- a/core/core_builders.py +++ b/core/core_builders.py @@ -32,7 +32,7 @@ def make_certs_header(target, source, env): src = source[0] dst = target[0] f = open(src, "rb") - g = open(dst, "w", encoding="utf-8") + g = open(dst, "w", encoding="utf-8", newline="\n") buf = f.read() decomp_size = len(buf) @@ -79,7 +79,7 @@ def make_authors_header(target, source, env): src = source[0] dst = target[0] f = open(src, "r", encoding="utf-8") - g = open(dst, "w", encoding="utf-8") + g = open(dst, "w", encoding="utf-8", newline="\n") g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") g.write("#ifndef AUTHORS_GEN_H\n") @@ -141,7 +141,7 @@ def make_donors_header(target, source, env): src = source[0] dst = target[0] f = open(src, "r", encoding="utf-8") - g = open(dst, "w", encoding="utf-8") + g = open(dst, "w", encoding="utf-8", newline="\n") g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") g.write("#ifndef DONORS_GEN_H\n") @@ -239,7 +239,7 @@ def make_license_header(target, source, env): part["copyright_index"] = len(data_list) data_list += part["Copyright"] - with open(dst, "w", encoding="utf-8") as f: + with open(dst, "w", encoding="utf-8", newline="\n") as f: f.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") f.write("#ifndef LICENSE_GEN_H\n") f.write("#define LICENSE_GEN_H\n") diff --git a/core/extension/make_interface_dumper.py b/core/extension/make_interface_dumper.py index a85d62eff3..f5662bdbbb 100644 --- a/core/extension/make_interface_dumper.py +++ b/core/extension/make_interface_dumper.py @@ -5,7 +5,7 @@ def run(target, source, env): src = source[0] dst = target[0] f = open(src, "rb") - g = open(dst, "w", encoding="utf-8") + g = open(dst, "w", encoding="utf-8", newline="\n") buf = f.read() decomp_size = len(buf) diff --git a/core/extension/make_wrappers.py b/core/extension/make_wrappers.py index 1e4634ad2c..e67ac8cfe7 100644 --- a/core/extension/make_wrappers.py +++ b/core/extension/make_wrappers.py @@ -142,7 +142,7 @@ def run(target, source, env): txt += "\n#endif\n" - with open(target[0], "w") as f: + with open(target[0], "w", encoding="utf-8", newline="\n") as f: f.write(txt) diff --git a/core/input/input_builders.py b/core/input/input_builders.py index 94c566493e..71238d6003 100644 --- a/core/input/input_builders.py +++ b/core/input/input_builders.py @@ -9,7 +9,7 @@ from collections import OrderedDict def make_default_controller_mappings(target, source, env): dst = target[0] - g = open(dst, "w") + g = open(dst, "w", encoding="utf-8", newline="\n") g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") g.write('#include "core/typedefs.h"\n') diff --git a/core/object/make_virtuals.py b/core/object/make_virtuals.py index ae70981f72..e2a8e656b7 100644 --- a/core/object/make_virtuals.py +++ b/core/object/make_virtuals.py @@ -201,7 +201,7 @@ def run(target, source, env): txt += "#endif // GDVIRTUAL_GEN_H\n" - with open(target[0], "w") as f: + with open(target[0], "w", encoding="utf-8", newline="\n") as f: f.write(txt) |