From: Frank Lichtenheld <>

When writing the file specify encoding and newline, so that
the local settings (like locale) do not change the output.

Change-Id: Id7b4bda38adfbb446bdac635ac5d5207ef3f2f40
Signed-off-by: Frank Lichtenheld <>
Acked-by: Arne Schwabe <>

This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.

Gerrit URL:
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Arne Schwabe <>

diff --git a/dev-tools/ b/dev-tools/
index 5429aef..67a2cf1 100755
--- a/dev-tools/
+++ b/dev-tools/
@@ -109,7 +109,7 @@
     filename = f"gerrit-{args.changeid}-{details['revision']}.patch"
     patch_text_final = patch_text_mod.replace("Subject: [PATCH v1]", 
f"Subject: [PATCH v{details['revision']}]")
-    with open(filename, "w") as patch_file:
+    with open(filename, "w", encoding="utf-8", newline="\n") as patch_file:
     print("send with:")
     print(f"git send-email --in-reply-to {details['msg_id']} {filename}")

Openvpn-devel mailing list

Reply via email to