From: Christophe Troestler Date: Fri, 21 Aug 2020 11:31:38 +0000 (+0200) Subject: Fix displaying inline ical attachments with no charset X-Git-Tag: emacs-28.0.90~6480 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3feef0428dad1e847d250d949248907ad31669dc;p=emacs.git Fix displaying inline ical attachments with no charset * lisp/gnus/gnus-icalendar.el (gnus-icalendar-with-decoded-handle): Check whether there is a charset before using it (bug#40290). Copyright-paperwork-exempt: yes --- diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 29d3e30780f..ab121f1f9ed 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -757,7 +757,7 @@ These will be used to retrieve the RSVP information from ical events." `(let ((,charset (cdr (assoc 'charset (mm-handle-type ,handle))))) (with-temp-buffer (mm-insert-part ,handle) - (when (string= (downcase ,charset) "utf-8") + (when (and ,charset (string= (downcase ,charset) "utf-8")) (decode-coding-region (point-min) (point-max) 'utf-8)) ,@body))))