diff options
author | Katsumi Yamaoka <yamaoka@jpl.org> | 2010-03-15 01:38:28 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2010-03-15 01:38:28 +0000 |
commit | ddf5d974aa5f8cfa9348339527352ab0ddb5f12d (patch) | |
tree | 1eb3443a33fa71cae0a39927d2aa44aba756ae8e /lisp/gnus/mm-util.el | |
parent | 57938a7982e20e7d8b96171f19821876c98cb4dc (diff) | |
download | emacs-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.el | 3 |
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)) |