From d9fa40f2df44d775e82332577d44de402b23611f Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Sat, 9 Mar 2024 14:29:24 -0600 Subject: Enforce `\n` eol for Python writes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Ensure utf-8 encoding if previously unspecified --- platform/SCsub | 2 +- platform/macos/SCsub | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'platform') diff --git a/platform/SCsub b/platform/SCsub index 5194a19518..e432cebd48 100644 --- a/platform/SCsub +++ b/platform/SCsub @@ -19,7 +19,7 @@ reg_apis += "}\n\n" unreg_apis += "}\n" # NOTE: It is safe to generate this file here, since this is still execute serially -with open("register_platform_apis.gen.cpp", "w", encoding="utf-8") as f: +with open("register_platform_apis.gen.cpp", "w", encoding="utf-8", newline="\n") as f: f.write(reg_apis_inc) f.write(reg_apis) f.write(unreg_apis) diff --git a/platform/macos/SCsub b/platform/macos/SCsub index 9083c2a288..135779582d 100644 --- a/platform/macos/SCsub +++ b/platform/macos/SCsub @@ -36,7 +36,7 @@ def generate_bundle(target, source, env): version = get_build_version(False) short_version = get_build_version(True) with open(Dir("#misc/dist/macos").abspath + "/editor_info_plist.template", "rt") as fin: - with open(app_dir + "/Contents/Info.plist", "wt") as fout: + with open(app_dir + "/Contents/Info.plist", "wt", encoding="utf-8", newline="\n") as fout: for line in fin: line = line.replace("$version", version) line = line.replace("$short_version", short_version) -- cgit v1.2.3