* rfc2047.el (rfc2047-encode): Test the validity of coding-system.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 3 May 2000 18:19:41 +0000 (18:19 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 3 May 2000 18:19:41 +0000 (18:19 +0000)
lisp/ChangeLog
lisp/rfc2047.el

index cd518f1..72a7b31 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-03 14:11:23  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * rfc2047.el (rfc2047-encode): Test the validity of coding-system.
+
 2000-05-03 11:35:15  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * rfc2047.el (rfc2047-encode-message-header): Encode field by
index 61d0f88..182dab7 100644 (file)
@@ -251,7 +251,9 @@ Should be called narrowed to the head of the message."
          (goto-char (min (point-max) (+ 15 (point))))
          (unless (eobp)
            (insert "\n"))))
-      (mm-encode-coding-region (point-min) (point-max) mime-charset)
+      (if (and (mm-multibyte-p)
+              (mm-coding-system-p mime-charset))
+         (mm-encode-coding-region (point-min) (point-max) mime-charset))
       (funcall (cdr (assq encoding rfc2047-encoding-function-alist))
               (point-min) (point-max))
       (goto-char (point-min))