From patchwork Mon Jan 29 14:57:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 3600 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7001:10:b0:550:f63e:f504 with SMTP id rm16csp1467219mab; Mon, 29 Jan 2024 06:58:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHz81KFqCQYefmGamyGoxlfWWGHea+qkzz18/Y+3/MpZy85oi+FSxf+ItNa2Umg4B5W3JPF X-Received: by 2002:a17:90a:8b89:b0:291:465:db9e with SMTP id z9-20020a17090a8b8900b002910465db9emr6654030pjn.1.1706540313200; Mon, 29 Jan 2024 06:58:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706540313; cv=none; d=google.com; s=arc-20160816; b=YVkbBpTRh+1Uct9gl+frB+MlM11Y9EPoQ4qPjqafnHeDT4qyqtnaHB7E14vUvFEN3W RL0SJ2hOD2vGAMPX/bk7FP0T4CBq+dLaBHEwOHORCf21J/mFyo3EzClnAtav/nD8gGNT 7wrIvy8X+kTtGlDaZz9BRstkz1Y8+lfW1s25H27fFeNEueML9Sqki03krTYFDcPVE7fO yosmq7xn1nWtkdgCpX1QMDi2Ncl6WM2Bf7PL5cpe6LgaHhMprl9um8Qgd1G/cXB1gUmK HHWOZuI6NK6Y62rrsBXVUhTh2np6CTJv86LoY9+ll7X6KfpkJtPb/GaYYMgwBBqtGolK G4Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature; bh=R8czMMorZRGQIHtx67/F6qse7Hpq+gNBiBITZFoWuiI=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=w/OZW4Qd3kpIHo7LUWMvIgkfWj9qHMHkC4xI6F9S9uRc4OhvHeK4KI87Yqf4t0JagF Og5gpAs+N8FGOCEv/vhcx5bZnWzQI2cg1qx0XxHvu6uxk61GpL/3+ZHG1Q5D8qv61/Bh QnUavLmylRb9AOjoNIIc+DVKmxSurR7zyav7UxYj2dUqEM3dwdK+xcRpksyZ8+GoNo0P Goc++p8CloCjEHAN2qugAK0UkIMUmYBjpjrqgajehX3wyAZ9ax2UJ9omibTerIb3RpXx ucHIRzjWeyufJZtDNHg7qTkA1nOhWCldp6627NnQyShe3lFnzOaUeo7nlXuNgsj4N+ia /ZHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=iBi2R8YW; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=R2+E7tnm; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id fw19-20020a17090b129300b0028d02fe4acesi5851858pjb.79.2024.01.29.06.58.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2024 06:58:33 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=iBi2R8YW; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=R2+E7tnm; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1rUT5L-0004wC-81; Mon, 29 Jan 2024 14:58:07 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rUT5J-0004w5-Mz for openvpn-devel@lists.sourceforge.net; Mon, 29 Jan 2024 14:58:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=061dZau1oAchXiNKTdhJ1CohbEaAU8JUsBK2Z7RcaP8=; b=iBi2R8YWfaDLOMuI81CIgvlYE7 2hHo9pUenSczvT8JocErraEFYJiHsitp6nNTpxVhuL0/iJue+91Om1mPhMsixHpuL5M12XRugsJTn NgH7aJceTzTxSQkNNhCj09Gr0Z3gxcLkhICkFAmKAJ+wIZxefIWAWEf2Ld7U4kBXpbfM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=061dZau1oAchXiNKTdhJ1CohbEaAU8JUsBK2Z7RcaP8=; b=R2+E7tnmilDL1nsPkHVeV29XPF Hzzi8bEdgxGfITqtxkLMyHi8Wah9RZJWuZQWcpaIKjmwJQCoel0tvCHdZhi/MSo1psaSmePLwr+NW OFM4frFA+IRPDhyXztQ8vFS/unf3CbLco+8ROO3JJkwuxvIfNvV7xW8se1Mu1u0aV7JY=; Received: from dhcp-174.greenie.muc.de ([193.149.48.174] helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1rUT5H-0006dx-NA for openvpn-devel@lists.sourceforge.net; Mon, 29 Jan 2024 14:58:05 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.17.1.9/8.17.1.9) with ESMTP id 40TEvvk9000779 for ; Mon, 29 Jan 2024 15:57:57 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.17.1.9/8.17.1.9/Submit) id 40TEvv0m000778 for openvpn-devel@lists.sourceforge.net; Mon, 29 Jan 2024 15:57:57 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Mon, 29 Jan 2024 15:57:56 +0100 Message-ID: <20240129145756.769-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: -0.0 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-1.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 --- Content analysis details: (-0.0 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Headers-End: 1rUT5H-0006dx-NA Subject: [Openvpn-devel] [PATCH v1] gerrit-send-mail: Make output consistent across systems X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1789437215693958274?= X-GMAIL-MSGID: =?utf-8?q?1789437215693958274?= 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: https://gerrit.openvpn.net/c/openvpn/+/508 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Arne Schwabe diff --git a/dev-tools/gerrit-send-mail.py b/dev-tools/gerrit-send-mail.py index 5429aef..67a2cf1 100755 --- a/dev-tools/gerrit-send-mail.py +++ b/dev-tools/gerrit-send-mail.py @@ -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: patch_file.write(patch_text_final) print("send with:") print(f"git send-email --in-reply-to {details['msg_id']} {filename}")