emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 266c622: Downcase charset


From: Robert Pluim
Subject: [Emacs-diffs] emacs-26 266c622: Downcase charset
Date: Sun, 14 Apr 2019 13:43:26 -0400 (EDT)

branch: emacs-26
commit 266c62290f5a0843555d2a18878a58395a6fd05f
Author: Robert Pluim <address@hidden>
Commit: Robert Pluim <address@hidden>

    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
    <address@hidden>.  (Bug#35265).
---
 lisp/gnus/gnus-icalendar.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el
index f79ce36..e4ad2af 100644
--- a/lisp/gnus/gnus-icalendar.el
+++ b/lisp/gnus/gnus-icalendar.el
@@ -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)))))
        (with-temp-buffer
          (mm-insert-part ,handle)
-         (when (string= ,charset "utf-8")
+         (when (string= (downcase ,charset) "utf-8")
            (decode-coding-region (point-min) (point-max) 'utf-8))
          ,@body))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]