1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

mail/rmailmm.el (rmail-mime-save): Make the temp buffer unibyte,

so compressed attachments are not compressed again.

 See http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg00599.html
This commit is contained in:
Eli Zaretskii 2010-07-16 12:59:37 +03:00
parent 243881ed13
commit 134a027f69
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-07-16 Eli Zaretskii <eliz@gnu.org>
* mail/rmailmm.el (rmail-mime-save): Make the temp buffer
unibyte, so compressed attachments are not compressed again.
2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
* xt-mouse.el (xterm-mouse-event-read): Fix for characters > 127

View File

@ -112,6 +112,10 @@ automatically display the image in the buffer."
(file-name-as-directory filename))))
(with-temp-buffer
(set-buffer-file-coding-system 'no-conversion)
;; Needed e.g. by jka-compr, so if the attachment is a compressed
;; file, the magic signature compares equal with the unibyte
;; signature string recorded in jka-compr-compression-info-list.
(set-buffer-multibyte nil)
(insert data)
(write-region nil nil filename nil nil nil t))))