]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'rfc6068-parse-mailto-url' with 'inhibit-eol-conversion'
authorKazuhiro Ito <kzhr@d1.dion.ne.jp>
Sun, 13 Apr 2025 11:00:44 +0000 (20:00 +0900)
committerEshel Yaron <me@eshelyaron.com>
Mon, 21 Apr 2025 20:40:14 +0000 (22:40 +0200)
* 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

index fd9436b9b6983011470cb28f1d8ba819c6f6a95f..63979010eddaab89bb8fe00a35e2a327c76df35f 100644 (file)
@@ -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.