Enforce \n eol for Python writes

• Ensure utf-8 encoding if previously unspecified
This commit is contained in:
Thaddeus Crews
2024-03-09 14:29:24 -06:00
parent f28964805e
commit d9fa40f2df
30 changed files with 63 additions and 59 deletions

View File

@ -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)