]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix displaying inline ical attachments with no charset
authorChristophe Troestler <Christophe.Troestler@umons.ac.be>
Fri, 21 Aug 2020 11:31:38 +0000 (13:31 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Aug 2020 11:31:38 +0000 (13:31 +0200)
* 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

lisp/gnus/gnus-icalendar.el

index 29d3e30780f71d83ce468adf9c2ae3ffc30652e8..ab121f1f9ed7ebff732110984578459a3a371a83 100644 (file)
@@ -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))))