GNU bug report logs -
#7626
23.2.91; Rmail shows incorrect message encoding in the mode line
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sun, 12 Dec 2010 22:16:02 UTC
Severity: normal
Found in version 23.2.91
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: Eli Zaretskii <eliz <at> gnu.org>
> Date: Wed, 19 Jan 2011 19:40:08 -0500
> Cc: 7626 <at> debbugs.gnu.org
> Reply-To: Eli Zaretskii <eliz <at> gnu.org>
>
> rmail-reply uses the encoding of the message replied to for setting
> the encoding of the reply.
Sorry, that was inaccurate and misleading. It's not rmail-reply, it's
mail-yank-original who does that, and it only does it if the encoding
of the reply buffer is the default buffer-file-coding-system (i.e. was
not yet set in any non-trivial way). Here's the relevant part of
mail-yank-original:
;; If they yank the original text, the encoding of the
;; original message is a better default than
;; the default buffer-file-coding-system.
(and (coding-system-equal
(default-value 'buffer-file-coding-system)
buffer-file-coding-system)
(setq buffer-file-coding-system
(coding-system-change-text-conversion
buffer-file-coding-system
(coding-system-base
(with-current-buffer original
buffer-file-coding-system))))))
The logic behind this is that if your reply cites the original, it had
better start with the encoding of that original.
This bug report was last modified 13 years and 225 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.