GNU bug report logs - #72542
31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Fri, 9 Aug 2024 12:40:01 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#72542: closed (31.0.50; EasyPG adds ^M in encrypting files
 with DOS-eol on Windows)
Date: Sat, 10 Aug 2024 07:56:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 10 Aug 2024 10:55:12 +0300
with message-id <86mslkke1r.fsf <at> gnu.org>
and subject line Re: bug#72542: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows
has caused the debbugs.gnu.org bug report #72542,
regarding 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
72542: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72542
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; EasyPG adds ^M in encrypting files with DOS-eol on Windows
Date: Fri, 09 Aug 2024 21:38:59 +0900
[Message part 3 (text/plain, inline)]
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
[0001-lisp-epg.el-epg-start-Don-t-convert-EOL-in-encoding.patch (text/plain, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Cc: 72542-done <at> debbugs.gnu.org
Subject: Re: bug#72542: 31.0.50;
 EasyPG adds ^M in encrypting files with DOS-eol on Windows
Date: Sat, 10 Aug 2024 10:55:12 +0300
> Date: Fri, 09 Aug 2024 21:38:59 +0900
> From: Kazuhiro Ito <kzhr <at> 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.


This bug report was last modified 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.