From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 09 08:39:51 2024 Received: (at submit) by debbugs.gnu.org; 9 Aug 2024 12:39:51 +0000 Received: from localhost ([127.0.0.1]:37804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scOuN-0006PG-5o for submit@debbugs.gnu.org; Fri, 09 Aug 2024 08:39:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:53656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scOuI-0006Os-Vt for submit@debbugs.gnu.org; Fri, 09 Aug 2024 08:39:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scOto-0003nI-OQ for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2024 08:39:18 -0400 Received: from mta-snd-e09.auone-net.jp ([111.86.247.9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scOti-0002xU-Om for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2024 08:39:16 -0400 Received: from kzhr.d1.dion.ne.jp by mta-snd-e09.auone-net.jp with ESMTP id <20240809123901242.VISZ.102123.kzhr.d1.dion.ne.jp@mta-snd-e09.auone-net.jp>; Fri, 9 Aug 2024 21:39:01 +0900 Date: Fri, 09 Aug 2024 21:38:59 +0900 Message-ID: <85v809vpjw.wl--xmue@d1.dion.ne.jp> From: Kazuhiro Ito To: bug-gnu-emacs@gnu.org Subject: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/31.0.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Fri_Aug__9_21:38:59_2024-1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d1.dion.ne.jp; s=default-1; t=1723207141; bh=/9l8lwOne5EdrAhN2jcnYs6b7Xsl+FGRXppkIjHZwGU=; h=Date:From:To:Subject; b=qz1bP9prqmtBD+Sq93RQrwRKEyfRbvpQlWMH6utrBXe5FObC3UdFT0kmlGpVlQWX61HPmSfh nAEwnT30WPvyJPqutSUGwIvBdbA0C/cZpKlwUF+61u1zxLqDk6U5GsIi8ZFxggT5FN12I19bBN FsMyJe2nbKiWmwMotRr82eXOyokkEI3/Nxb5VsFw6TeYGZkj5B7L+lvWZws3pd7nODV1LFdJP1 VoCAXrkkjrBXGOxYIuzgQIjDq6apQq+m2VQiGdGcT+w7O9PGqSr6zRXrC53ukyvtOQsVHh6Y7x eVDSM3MTX7+eUEB4X1r6zYxqwiIMeTQXT0OZo1a15cOGyRkg== Received-SPF: pass client-ip=111.86.247.9; envelope-from=kzhr@d1.dion.ne.jp; helo=mta-snd-e09.auone-net.jp X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Multipart_Fri_Aug__9_21:38:59_2024-1 Content-Type: text/plain; charset=US-ASCII 1. Create or open an encrypted text file, which has .gpg suffix. 2. Save the file with DOS-eol. (C-x RET f utf-8-dos and C-x C-s) 3. Kill buffer and re-open it. I can see ^M garbage in each eol. I noticed it because Wanderlust (a mailer) failed to verify signature on Windows. Attached patch can resolve the issue. -- Kazuhiro Ito --Multipart_Fri_Aug__9_21:38:59_2024-1 Content-Type: text/plain; type=patch; name="0001-lisp-epg.el-epg-start-Don-t-convert-EOL-in-encoding.patch"; charset=US-ASCII Content-Disposition: attachment; filename="0001-lisp-epg.el-epg-start-Don-t-convert-EOL-in-encoding.patch" Content-Transfer-Encoding: 7bit >From 63eabd45e894c643a38b80de717291afe971f6fa Mon Sep 17 00:00:00 2001 From: Kazuhiro Ito Date: Fri, 9 Aug 2024 21:28:41 +0900 Subject: [PATCH] * lisp/epg.el (epg--start): Don't convert EOL in encoding. --- lisp/epg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/epg.el b/lisp/epg.el index 494bdd68c41..6b4db52f298 100644 --- a/lisp/epg.el +++ b/lisp/epg.el @@ -683,7 +683,7 @@ epg--start ;; We encode and decode ourselves the text sent/received from gpg, ;; so the below disables automatic encoding and decoding by ;; subprocess communications routines. - (set-process-coding-system process 'raw-text 'raw-text) + (set-process-coding-system process 'raw-text 'raw-text-unix) (setf (epg-context-process context) process))) (defun epg--process-filter (process input) -- 2.45.1 --Multipart_Fri_Aug__9_21:38:59_2024-1-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 10 03:55:58 2024 Received: (at 72542-done) by debbugs.gnu.org; 10 Aug 2024 07:55:59 +0000 Received: from localhost ([127.0.0.1]:38991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scgxC-00065X-7h for submit@debbugs.gnu.org; Sat, 10 Aug 2024 03:55:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scgx8-00065J-Bm for 72542-done@debbugs.gnu.org; Sat, 10 Aug 2024 03:55:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1scgwX-0002Ql-IN; Sat, 10 Aug 2024 03:55:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uLGDNyETRZqjGyKpl0dggHg9zmxkKXl0Uso1Vdxt6Tk=; b=Zg7X277T0uT2 sPq3BeOsj4dBFSZ1WYwDesKT48iazTtx22g6WxZSBZo7OfayVLYAe0qtk6M0KhfP1a8vmNMnc2YcC YyjftXZ+dFKwca+IUiCLZFMWmsUJ8tqRczDX0+ww9jydQDnLKMGhED3xa2y67csd7giPDEc4emyYj zxpijlyA1UPs9zJw3yNuawfJ+3Ez+qU1BwQjVbka4H6omU4+CB0jJVNvmzi/NpYG6k61CPXafu9Yu c5xgf3DpOoDFwj1IEbiQHHJEfUMOld+iYCdtotaFgKRdcRyqK7g2A98RhDbZQEl+CMpp65hoxcdOB hD+eREovIsBm+zfD2mlocQ==; Date: Sat, 10 Aug 2024 10:55:12 +0300 Message-Id: <86mslkke1r.fsf@gnu.org> From: Eli Zaretskii To: Kazuhiro Ito In-Reply-To: <85v809vpjw.wl--xmue@d1.dion.ne.jp> (message from Kazuhiro Ito on Fri, 09 Aug 2024 21:38:59 +0900) Subject: Re: bug#72542: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows References: <85v809vpjw.wl--xmue@d1.dion.ne.jp> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72542-done Cc: 72542-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 09 Aug 2024 21:38:59 +0900 > From: Kazuhiro Ito > > 1. Create or open an encrypted text file, which has .gpg suffix. > 2. Save the file with DOS-eol. (C-x RET f utf-8-dos and C-x C-s) > 3. Kill buffer and re-open it. > > I can see ^M garbage in each eol. I noticed it because Wanderlust (a > mailer) failed to verify signature on Windows. Attached patch can > resolve the issue. Thanks, installed on the emacs-30 release branch, and closing the bug. From unknown Fri Sep 05 20:54:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 07 Sep 2024 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator