Commit 266c6229 authored by Robert Pluim's avatar Robert Pluim
Browse files

Downcase charset

RFC 2046 specifies that the charset parameter is case-insensitive.

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-with-decoded-handle):
Downcase charset.  Suggested by Christophe TROESTLER
<>.  (Bug#35265).
parent 92f3459c
Pipeline #1288 passed with stage
in 46 minutes and 54 seconds
......@@ -767,7 +767,7 @@ These will be used to retrieve the RSVP information from ical events."
`(let ((,charset (cdr (assoc 'charset (mm-handle-type ,handle)))))
(mm-insert-part ,handle)
(when (string= ,charset "utf-8")
(when (string= (downcase ,charset) "utf-8")
(decode-coding-region (point-min) (point-max) 'utf-8))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment