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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72542 in the body.
You can then email your comments to 72542 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72542; Package emacs. (Fri, 09 Aug 2024 12:40:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 09 Aug 2024 12:40:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 10 Aug 2024 07:56:02 GMT) Full text and rfc822 format available.

Notification sent to Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>:
bug acknowledged by developer. (Sat, 10 Aug 2024 07:56:02 GMT) Full text and rfc822 format available.

Message #10 received at 72542-done <at> debbugs.gnu.org (full text, mbox):

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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 07 Sep 2024 11:24:09 GMT) Full text and rfc822 format available.

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.