From abb37b3b85167d28dab9bd7fca615b805b13dd0d Mon Sep 17 00:00:00 2001 From: Kazuhiro Ito Date: Sun, 13 Apr 2025 20:00:44 +0900 Subject: [PATCH] Fix 'rfc6068-parse-mailto-url' with 'inhibit-eol-conversion' * lisp/mail/rfc6068.el (rfc6068-parse-mailto-url): Fix EOL type to CRLF and never inhibit EOL conversion in decoding. (Bug#77776) (cherry picked from commit 2cf545f47dc945b8ebff641af7e15798ddd419c2) --- lisp/mail/rfc6068.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mail/rfc6068.el b/lisp/mail/rfc6068.el index fd9436b9b69..63979010edd 100644 --- a/lisp/mail/rfc6068.el +++ b/lisp/mail/rfc6068.el @@ -39,7 +39,8 @@ string instead of decoding as utf-8." (buffer-string)))) (if inhibit-decode string - (decode-coding-string string 'utf-8)))) + (let (inhibit-eol-conversion) + (decode-coding-string string 'utf-8-dos))))) (defun rfc6068-parse-mailto-url (mailto-url) "Parse MAILTO-URL, and return an alist of header-name, header-value pairs. -- 2.39.5