Subject: Re: bug#2018: 23.0.60; Rmail buffer's encoding set incorrectly
From: Eli Zaretskii <[email-masked]>
To: [email-masked]
Date: Sat, 31 Jan 2009 15:40:02 +0200

Fixed with these changes:

2009-01-31  Eli Zaretskii  <[email-masked]>

	* mail/rmail.el (rmail-convert-babyl-to-mbox): Set Rmail's buffer
	encoding to `raw-text-unix'.
	(rmail-perm-variables): Set encoding of rmail-view-buffer to
	`undecided-unix'.
	(rmail-redecode-body): Don't change EOL conversion of the new
	encoding if the old one left it unspecified.
	(rmail-swap-buffers): New function.
	(rmail-change-major-mode-hook, rmail-swap-buffers-maybe)
	(rmail-show-message): Use rmail-swap-buffers.
	(rmail-decode-region): If DESTINATION is a buffer, set the
	encoding of that buffer, rather than the current buffer.