2008-04-05 Stefan Monnier <monnier@iro.umontreal.ca>
+ * gnus-art.el (gnus-mime-replace-part): Remove unnecessary use of
+ mm-with-multibyte.
+ (gnus-request-article-this-buffer): Make sure the proper decoding is used
+ if gnus-original-article-buffer happens to be unibyte.
+
* gnus-ems.el (gnus-x-splash): Prefer mm-disable-multibyte to
default-enable-multibyte-characters.
;; Useful if file has already been saved to disk
(interactive
(list
- (mm-with-multibyte
- (read-file-name "Replace MIME part with file: "
- (or mm-default-directory default-directory)
- nil nil))))
+ (read-file-name "Replace MIME part with file: "
+ (or mm-default-directory default-directory)
+ nil nil)))
(gnus-mime-save-part-and-strip file))
(defun gnus-mime-save-part-and-strip (&optional file)
(with-current-buffer gnus-original-article-buffer
(and (equal (car gnus-original-article) group)
(eq (cdr gnus-original-article) article))))
- (insert-buffer-substring gnus-original-article-buffer)
+ ;; `insert-buffer-substring' would incorrectly use the
+ ;; equivalent of string-make-multibyte which amount to decoding
+ ;; with locale-coding-system, causing failure of
+ ;; subsequent decoding.
+ (insert (mm-string-to-multibyte
+ (with-current-buffer gnus-original-article-buffer
+ (buffer-substring (point-min) (point-max)))))
'article)
;; Check the backlog.
((and gnus-keep-backlog