summaryrefslogtreecommitdiff
path: root/lisp/gnus/mm-util.el
diff options
context:
space:
mode:
authorKatsumi Yamaoka <yamaoka@jpl.org>2010-03-15 01:38:28 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2010-03-15 01:38:28 +0000
commitddf5d974aa5f8cfa9348339527352ab0ddb5f12d (patch)
tree1eb3443a33fa71cae0a39927d2aa44aba756ae8e /lisp/gnus/mm-util.el
parent57938a7982e20e7d8b96171f19821876c98cb4dc (diff)
downloademacs-ddf5d974aa5f8cfa9348339527352ab0ddb5f12d.tar.gz
(mm-charset-to-coding-system): Use coding-system-from-name
if it is available. (bug#5647)
Diffstat (limited to 'lisp/gnus/mm-util.el')
-rw-r--r--lisp/gnus/mm-util.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 8dc232e7572..aa2be153b0f 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -566,6 +566,9 @@ is not available."
;;; (eq charset (coding-system-get charset 'mime-charset))
)
charset)
+ ;; Use coding system Emacs knows.
+ ((and (fboundp 'coding-system-from-name)
+ (coding-system-from-name charset)))
;; Eval expressions from `mm-charset-eval-alist'
((let* ((el (assq charset mm-charset-eval-alist))
(cs (car el))