diff options
| author | Dave Love | 2001-01-31 18:37:17 +0000 |
|---|---|---|
| committer | Dave Love | 2001-01-31 18:37:17 +0000 |
| commit | bf3b936fd062d8f2a8c3ac59820510ab1101e1e8 (patch) | |
| tree | 79ac8b1271fd65930df82dd3aeed23521107c46d | |
| parent | be9e83310e761e95862cb453e28b05d7b48d25ef (diff) | |
| download | emacs-bf3b936fd062d8f2a8c3ac59820510ab1101e1e8.tar.gz emacs-bf3b936fd062d8f2a8c3ac59820510ab1101e1e8.zip | |
(mm-mime-mule-charset-alist)
(mm-find-mime-charset-region): Consider mule-utf-8.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 14 |
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1ef20fd7bd2..1f1027b1e40 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2001-01-31 Dave Love <fx@gnu.org> | 1 | 2001-01-31 Dave Love <fx@gnu.org> |
| 2 | 2 | ||
| 3 | * mm-util.el (mm-mime-mule-charset-alist) | ||
| 4 | (mm-find-mime-charset-region): Consider mule-utf-8. | ||
| 5 | |||
| 6 | 2001-01-31 Dave Love <fx@gnu.org> | ||
| 7 | |||
| 3 | * gnus-art.el (gnus-article-x-face-command) | 8 | * gnus-art.el (gnus-article-x-face-command) |
| 4 | (gnus-treat-display-xface, gnus-treat-display-smileys): Add | 9 | (gnus-treat-display-xface, gnus-treat-display-smileys): Add |
| 5 | :version. | 10 | :version. |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 0194e35a3ab..196d1d0039d 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; mm-util.el --- Utility functions for MIME things | 1 | ;;; mm-util.el --- Utility functions for MIME things |
| 2 | ;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 4 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 5 | ;; MORIOKA Tomohiko <morioka@jaist.ac.jp> | 5 | ;; MORIOKA Tomohiko <morioka@jaist.ac.jp> |
| @@ -28,7 +28,7 @@ | |||
| 28 | (require 'mail-prsvr) | 28 | (require 'mail-prsvr) |
| 29 | 29 | ||
| 30 | (defvar mm-mime-mule-charset-alist | 30 | (defvar mm-mime-mule-charset-alist |
| 31 | '((us-ascii ascii) | 31 | `((us-ascii ascii) |
| 32 | (iso-8859-1 latin-iso8859-1) | 32 | (iso-8859-1 latin-iso8859-1) |
| 33 | (iso-8859-2 latin-iso8859-2) | 33 | (iso-8859-2 latin-iso8859-2) |
| 34 | (iso-8859-3 latin-iso8859-3) | 34 | (iso-8859-3 latin-iso8859-3) |
| @@ -71,7 +71,11 @@ | |||
| 71 | chinese-cns11643-3 chinese-cns11643-4 | 71 | chinese-cns11643-3 chinese-cns11643-4 |
| 72 | chinese-cns11643-5 chinese-cns11643-6 | 72 | chinese-cns11643-5 chinese-cns11643-6 |
| 73 | chinese-cns11643-7) | 73 | chinese-cns11643-7) |
| 74 | (utf-8 unicode-a unicode-b unicode-c unicode-d unicode-e)) | 74 | ,(if (or (charsetp 'unicode-a) |
| 75 | (not (coding-system-p 'mule-utf-8))) | ||
| 76 | '(utf-8 unicode-a unicode-b unicode-c unicode-d unicode-e) | ||
| 77 | ;; If we have utf-8 we're in Mule 5+. | ||
| 78 | (delete 'ascii (coding-system-get 'mule-utf-8 'safe-charsets)))) | ||
| 75 | "Alist of MIME-charset/MULE-charsets.") | 79 | "Alist of MIME-charset/MULE-charsets.") |
| 76 | 80 | ||
| 77 | (eval-and-compile | 81 | (eval-and-compile |
| @@ -293,6 +297,7 @@ If the charset is `composition', return the actual one." | |||
| 293 | (setq mail-parse-mule-charset | 297 | (setq mail-parse-mule-charset |
| 294 | (or (car (last (assq mail-parse-charset | 298 | (or (car (last (assq mail-parse-charset |
| 295 | mm-mime-mule-charset-alist))) | 299 | mm-mime-mule-charset-alist))) |
| 300 | ;; Fixme: don't fix that! | ||
| 296 | 'latin-iso8859-1))) | 301 | 'latin-iso8859-1))) |
| 297 | mail-parse-mule-charset))))))) | 302 | mail-parse-mule-charset))))))) |
| 298 | 303 | ||
| @@ -329,7 +334,8 @@ If the charset is `composition', return the actual one." | |||
| 329 | (setq charsets (mm-delete-duplicates charsets)) | 334 | (setq charsets (mm-delete-duplicates charsets)) |
| 330 | (if (and (> (length charsets) 1) | 335 | (if (and (> (length charsets) 1) |
| 331 | (fboundp 'find-coding-systems-region) | 336 | (fboundp 'find-coding-systems-region) |
| 332 | (memq 'utf-8 (find-coding-systems-region b e))) | 337 | (let ((cs (find-coding-systems-region b e))) |
| 338 | (or (memq 'utf-8 cs) (memq 'mule-utf-8 cs)))) | ||
| 333 | '(utf-8) | 339 | '(utf-8) |
| 334 | charsets))) | 340 | charsets))) |
| 335 | 341 | ||