diff options
Diffstat (limited to 'misc/scripts')
-rwxr-xr-x | misc/scripts/copyright_headers.py | 2 | ||||
-rw-r--r-- | misc/scripts/dotnet_format.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/scripts/copyright_headers.py b/misc/scripts/copyright_headers.py index a5e2f0c05d..8fb793976c 100755 --- a/misc/scripts/copyright_headers.py +++ b/misc/scripts/copyright_headers.py @@ -90,6 +90,6 @@ while line != "": # Dump everything until EOF fileread.close() # Write -filewrite = open(fname.strip(), "w") +filewrite = open(fname.strip(), "w", encoding="utf-8", newline="\n") filewrite.write(text) filewrite.close() diff --git a/misc/scripts/dotnet_format.py b/misc/scripts/dotnet_format.py index de414bbe30..83265be7c5 100644 --- a/misc/scripts/dotnet_format.py +++ b/misc/scripts/dotnet_format.py @@ -10,7 +10,7 @@ for path in [ "modules/mono/SdkPackageVersions.props", ]: os.makedirs(os.path.dirname(path), exist_ok=True) - with open(path, "w") as f: + with open(path, "w", encoding="utf-8", newline="\n") as f: f.write("<Project />") # Avoid importing GeneratedIncludes.props. |