+2002-10-15 Kenichi Handa <handa@m17n.org>
+
+ * mail/sendmail.el (sendmail-send-it): Call
+ select-message-coding-system before changing the current bufer to
+ " sendmail temp".
+
2002-10-14 Andre Spiegel <spiegel@gnu.org>
* files.el (insert-directory): Handle //SUBDIRED// lines in
(tembuf (generate-new-buffer " sendmail temp"))
(multibyte enable-multibyte-characters)
(case-fold-search nil)
- (coding (and (local-variable-p 'buffer-file-coding-system)
- buffer-file-coding-system))
- selected-coding
+ (selected-coding (select-message-coding-system))
;;; resend-to-addresses
delimline
fcc-was-found
(unless multibyte
(set-buffer-multibyte nil))
(insert-buffer-substring mailbuf)
- (set-buffer-file-coding-system coding)
(goto-char (point-max))
;; require one newline at the end.
(or (= (preceding-char) ?\n)
(not (re-search-forward "^MIME-version:" delimline t))
(progn (skip-chars-forward "\0-\177")
(/= (point) (point-max)))
- (setq selected-coding (select-message-coding-system))
+ selected-coding
(setq charset
(coding-system-get selected-coding 'mime-charset))
(goto-char delimline)
\\|^resent-cc:\\|^resent-bcc:"
delimline t))
(let* ((default-directory "/")
- (coding-system-for-write
- (or selected-coding
- (select-message-coding-system)))
+ (coding-system-for-write selected-coding)
(args
(append (list (point-min) (point-max)
program