+2002-08-18 Dave Love <fx@gnu.org>
+
+ * rfc2047.el (rfc2047-encode): Fix last change.
+
2002-07-30 Dave Love <fx@gnu.org>
* rfc2047.el (rfc2047-charset-encoding-alist): Use B for Hebrew.
(let* ((buff (current-buffer))
(mime-charset (with-temp-buffer
(insert-buffer-substring buff b e)
- (mm-find-mime-charset-region b e)))
+ (mm-find-mime-charset-region 1 (point-max))))
(cs (if (> (length mime-charset) 1)
- (mm-charset-to-coding-system mime-charset)
- (error "Can't encode word: %s" (buffer-substring b e))))
+ (error "Can't encode word: %s" (buffer-substring b e))
+ (setq mime-charset (car mime-charset))
+ (mm-charset-to-coding-system mime-charset)))
(encoding (or (cdr (assq mime-charset
rfc2047-charset-encoding-alist))
'B))