mm-with-unibyte-current-buffer to make string unibyte.
* mm-decode.el (mm-insert-part): Use mm-string-to-multibyte instead of
mm-string-as-multibyte.
+2006-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mml.el (mml-generate-mime-1): Use mm-string-as-unibyte instead of
+ mm-with-unibyte-current-buffer to make string unibyte.
+
+ * mm-decode.el (mm-insert-part): Use mm-string-to-multibyte instead of
+ mm-string-as-multibyte.
+
2006-11-14 Daiki Ueno <ueno@unixuser.org>
* mml2015.el (mml2015-epg-sign): Prefix "pgp-" to a micalg value.
(with-current-buffer (mm-handle-buffer handle)
(buffer-string)))
((mm-multibyte-p)
- (mm-string-as-multibyte (mm-get-part handle no-cache)))
+ (mm-string-to-multibyte (mm-get-part handle no-cache)))
(t
(mm-get-part handle no-cache))))))
(mm-with-unibyte-buffer
(cond
((cdr (assq 'buffer cont))
- (insert (with-current-buffer (cdr (assq 'buffer cont))
- (mm-with-unibyte-current-buffer
- (buffer-string)))))
+ (insert (mm-string-as-unibyte
+ (with-current-buffer (cdr (assq 'buffer cont))
+ (buffer-string)))))
((and filename
(not (equal (cdr (assq 'nofile cont)) "yes")))
(let ((coding-system-for-read mm-binary-coding-system))