GNU bug report logs -
#28266
25.2; RMAIL FCC coding issue
Previous Next
Reported by: charles <at> aurox.ch (Charles A. Roelli)
Date: Mon, 28 Aug 2017 19:01:02 UTC
Severity: normal
Tags: moreinfo
Found in version 25.2
Done: Lars Ingebrigtsen <larsi <at> gnus.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 28266 in the body.
You can then email your comments to 28266 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Mon, 28 Aug 2017 19:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
charles <at> aurox.ch (Charles A. Roelli)
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 28 Aug 2017 19:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From emacs -q (25.2 or 26.0.50):
M-: (setq mail-user-agent 'sendmail-user-agent) RET
C-x m
someone <at> example.com C-n
test RET
FCC: /tmp/emacs-bug-mbox
C-u 2 C-n
This is a test mail, containing ‘’ quotes.
C-c C-c
transport RET ; On my system, this doesn't actually send the mail, so
; this is the mail-sending system I choose to reproduce
; the issue. In any case, the recipient email doesn't
; really exist so it should be okay to choose this.
C-u M-x rmail /tmp/emacs-bug-mbox ; Observe correct message contents.
C-x o ; Switch back to the *mail* buffer.
C-c C-c y ; Resend it.
n ; Open the resent copy.
This is RMAIL's copy of the resent mail:
----------
Date: Mon, 28 Aug 2017 20:41:35 +0200
From: charles <at> localhost (Charles A. Roelli)
To: someone <at> example.com
Subject: test
Content-type: text/plain; charset=utf-8
This is a test mail, containing ^X^Y quotes.
----------
Notice that the quotes have been converted to ^X/^Y
characters (characters have been corrupted). I tested with
another non-ASCII character (é), and it got converted to \351.
The same issue does not occur with the default value of
mail-user-agent (`message-user-agent').
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Fri, 22 Sep 2017 13:15:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 28266 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 28 Aug 2017 20:59:58 +0200
> From: charles <at> aurox.ch (Charles A. Roelli)
>
> >From emacs -q (25.2 or 26.0.50):
>
> M-: (setq mail-user-agent 'sendmail-user-agent) RET
> C-x m
> someone <at> example.com C-n
> test RET
> FCC: /tmp/emacs-bug-mbox
> C-u 2 C-n
> This is a test mail, containing ‘’ quotes.
> C-c C-c
> transport RET ; On my system, this doesn't actually send the mail, so
> ; this is the mail-sending system I choose to reproduce
> ; the issue. In any case, the recipient email doesn't
> ; really exist so it should be okay to choose this.
> C-u M-x rmail /tmp/emacs-bug-mbox ; Observe correct message contents.
> C-x o ; Switch back to the *mail* buffer.
> C-c C-c y ; Resend it.
> n ; Open the resent copy.
>
> This is RMAIL's copy of the resent mail:
>
> ----------
> Date: Mon, 28 Aug 2017 20:41:35 +0200
> From: charles <at> localhost (Charles A. Roelli)
> To: someone <at> example.com
> Subject: test
> Content-type: text/plain; charset=utf-8
>
> This is a test mail, containing ^X^Y quotes.
> ----------
>
> Notice that the quotes have been converted to ^X/^Y
> characters (characters have been corrupted). I tested with
> another non-ASCII character (é), and it got converted to \351.
I cannot reproduce this with the current emacs-26 branch tip.
However, in my case, Emacs asked for a suitable coding-system each
time I wanted to send a message. Answering UTF-8 produced a valid
encoding in both cases.
So perhaps the difference, and the reason for a problem you see, is
the default encoding in your case, which you didn't show. (In my
case, the default is Latin-1.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Fri, 22 Sep 2017 18:41:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 28266 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 22 Sep 2017 16:13:58 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> I cannot reproduce this with the current emacs-26 branch tip.
> However, in my case, Emacs asked for a suitable coding-system each
> time I wanted to send a message. Answering UTF-8 produced a valid
> encoding in both cases.
>
> So perhaps the difference, and the reason for a problem you see, is
> the default encoding in your case, which you didn't show. (In my
> case, the default is Latin-1.)
Hmm, I was never queried for a coding system. I've repeated the issue
on GNU/Linux with 25.3 and macOS with 25.3 and emacs-26. And I don't
set any special locales/language environments:
> Important settings:
> value of $LANG: en_GB.UTF-8
> locale-coding-system: utf-8-unix
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Fri, 22 Sep 2017 20:09:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 28266 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 22 Sep 2017 20:39:45 +0200
> From: charles <at> aurox.ch (Charles A. Roelli)
> CC: 28266 <at> debbugs.gnu.org
>
> > Date: Fri, 22 Sep 2017 16:13:58 +0300
> > From: Eli Zaretskii <eliz <at> gnu.org>
> >
> > I cannot reproduce this with the current emacs-26 branch tip.
> > However, in my case, Emacs asked for a suitable coding-system each
> > time I wanted to send a message. Answering UTF-8 produced a valid
> > encoding in both cases.
> >
> > So perhaps the difference, and the reason for a problem you see, is
> > the default encoding in your case, which you didn't show. (In my
> > case, the default is Latin-1.)
>
> Hmm, I was never queried for a coding system.
Because your default is UTF-8. This is normal.
> I've repeated the issue on GNU/Linux with 25.3 and macOS with 25.3
> and emacs-26. And I don't set any special locales/language
> environments:
>
> > Important settings:
> > value of $LANG: en_GB.UTF-8
> > locale-coding-system: utf-8-unix
With en_US.UTF-8 on GNU/Linux, using the current emacs-26 branch, I
see no problem: both messages are sent with a correct encoding.
What happens if you don't visit the FCC file after the first message
is sent, only after the second? Do you still see the second message
encoded incorrectly?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Sun, 24 Sep 2017 08:48:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 28266 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 22 Sep 2017 23:08:13 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > Date: Fri, 22 Sep 2017 20:39:45 +0200
> > From: charles <at> aurox.ch (Charles A. Roelli)
> > CC: 28266 <at> debbugs.gnu.org
> >
> > > Date: Fri, 22 Sep 2017 16:13:58 +0300
> > > From: Eli Zaretskii <eliz <at> gnu.org>
> > >
> > > I cannot reproduce this with the current emacs-26 branch tip.
> > > However, in my case, Emacs asked for a suitable coding-system each
> > > time I wanted to send a message. Answering UTF-8 produced a valid
> > > encoding in both cases.
> > >
> > > So perhaps the difference, and the reason for a problem you see, is
> > > the default encoding in your case, which you didn't show. (In my
> > > case, the default is Latin-1.)
> >
> > Hmm, I was never queried for a coding system.
>
> Because your default is UTF-8. This is normal.
>
> > I've repeated the issue on GNU/Linux with 25.3 and macOS with 25.3
> > and emacs-26. And I don't set any special locales/language
> > environments:
> >
> > > Important settings:
> > > value of $LANG: en_GB.UTF-8
> > > locale-coding-system: utf-8-unix
>
> With en_US.UTF-8 on GNU/Linux, using the current emacs-26 branch, I
> see no problem: both messages are sent with a correct encoding.
Yes, I believe that in my case too, the messages are (or would be)
sent with the correct encoding. The encoding issue I mentioned seems
to only apply to the saving of the mail buffer into the file specified
in the FCC header.
> What happens if you don't visit the FCC file after the first message
> is sent, only after the second? Do you still see the second message
> encoded incorrectly?
No, in that case, both messages are encoded correctly. The encoding
issue seems to only occur when the buffer is already open.
The text of the outgoing mail buffer is inserted into the file
specified by the FCC header using "insert-buffer-substring" in
function "rmail-output-to-rmail-buffer" (use C-u C-M-x on this
function before hitting C-c C-c y to resend the mail). If you switch
to "tembuf" (argument to "rmail-output-to-rmail-buffer") in another
frame while debugging this function, you can see in the modeline that
its coding system is utf-8-unix. Then if you switch to the buffer
containing the FCC file, the modeline indicates that it's unibyte.
Note also that variable "enable-multibyte-characters" is bound to nil
around this call.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Sun, 24 Sep 2017 12:04:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 28266 <at> debbugs.gnu.org (full text, mbox):
Charles A. Roelli <charles <at> aurox.ch> writes:
> Yes, I believe that in my case too, the messages are (or would
> be)
> sent with the correct encoding. The encoding issue I mentioned
> seems
> to only apply to the saving of the mail buffer into the file
> specified
> in the FCC header.
To me this sounds similar to #25645:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25645
Or is that entirely unrelated?
Alexis.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Sun, 23 Jan 2022 15:56:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 28266 <at> debbugs.gnu.org (full text, mbox):
Alexis <flexibeast <at> gmail.com> writes:
> Charles A. Roelli <charles <at> aurox.ch> writes:
>
>> Yes, I believe that in my case too, the messages are (or would be)
>> sent with the correct encoding. The encoding issue I mentioned
>> seems
>> to only apply to the saving of the mail buffer into the file
>> specified
>> in the FCC header.
>
> To me this sounds similar to #25645:
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25645
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Looks quite similar.
Charles, are you still seeing these problems in recent Emacs versions?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Jan 2022 15:56:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28266
; Package
emacs
.
(Sun, 20 Feb 2022 19:31:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 28266 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>> To me this sounds similar to #25645:
>>
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25645
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> Looks quite similar.
>
> Charles, are you still seeing these problems in recent Emacs versions?
There was no response in a month, and since 25645 was fixed, I'm going
to assume that that fix also fixed this bug report, and I'm closing it.
If this is still an issue in recent Emacs versions, please respond to
the debbugs address and we'll reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
28266 <at> debbugs.gnu.org and charles <at> aurox.ch (Charles A. Roelli)
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 20 Feb 2022 19:32:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 21 Mar 2022 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 30 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.