* bug#72542: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows
@ 2024-08-09 12:38 Kazuhiro Ito
2024-08-10 7:55 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Kazuhiro Ito @ 2024-08-09 12:38 UTC (permalink / raw)
To: 72542
[-- Attachment #1: Type: text/plain, Size: 337 bytes --]
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
[-- Attachment #2: 0001-lisp-epg.el-epg-start-Don-t-convert-EOL-in-encoding.patch --]
[-- Type: text/plain, Size: 859 bytes --]
From 63eabd45e894c643a38b80de717291afe971f6fa Mon Sep 17 00:00:00 2001
From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#72542: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows
2024-08-09 12:38 bug#72542: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows Kazuhiro Ito
@ 2024-08-10 7:55 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-08-10 7:55 UTC (permalink / raw)
To: Kazuhiro Ito; +Cc: 72542-done
> Date: Fri, 09 Aug 2024 21:38:59 +0900
> From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
>
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-10 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 12:38 bug#72542: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows Kazuhiro Ito
2024-08-10 7:55 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).