diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-03-09 14:29:24 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-03-09 14:29:24 -0600 |
commit | d9fa40f2df44d775e82332577d44de402b23611f (patch) | |
tree | f9f95b4d52fbe79a9cd1ca1b0107b14cb7c9e45b /main | |
parent | f28964805e44a5c068ce8fd9d1e00697fcd922dc (diff) | |
download | redot-engine-d9fa40f2df44d775e82332577d44de402b23611f.tar.gz |
Enforce `\n` eol for Python writes
• Ensure utf-8 encoding if previously unspecified
Diffstat (limited to 'main')
-rw-r--r-- | main/main_builders.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/main_builders.py b/main/main_builders.py index 59d9d7dc3d..69277e49df 100644 --- a/main/main_builders.py +++ b/main/main_builders.py @@ -14,7 +14,7 @@ def make_splash(target, source, env): with open(src, "rb") as f: buf = f.read() - with open(dst, "w") as g: + with open(dst, "w", encoding="utf-8", newline="\n") as g: g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") g.write("#ifndef BOOT_SPLASH_H\n") g.write("#define BOOT_SPLASH_H\n") @@ -34,7 +34,7 @@ def make_splash_editor(target, source, env): with open(src, "rb") as f: buf = f.read() - with open(dst, "w") as g: + with open(dst, "w", encoding="utf-8", newline="\n") as g: g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") g.write("#ifndef BOOT_SPLASH_EDITOR_H\n") g.write("#define BOOT_SPLASH_EDITOR_H\n") @@ -55,7 +55,7 @@ def make_app_icon(target, source, env): with open(src, "rb") as f: buf = f.read() - with open(dst, "w") as g: + with open(dst, "w", encoding="utf-8", newline="\n") as g: g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") g.write("#ifndef APP_ICON_H\n") g.write("#define APP_ICON_H\n") |