diff options
| author | Kazuhiro Ito | 2025-04-13 20:00:44 +0900 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-19 17:20:27 +0300 |
| commit | 2cf545f47dc945b8ebff641af7e15798ddd419c2 (patch) | |
| tree | 2557cd97809b7a3a13595599d75632f0cded4562 | |
| parent | 6b901a8e85987940738b21032b035ba4e8f7379b (diff) | |
| download | emacs-2cf545f47dc945b8ebff641af7e15798ddd419c2.tar.gz emacs-2cf545f47dc945b8ebff641af7e15798ddd419c2.zip | |
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)
| -rw-r--r-- | lisp/mail/rfc6068.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mail/rfc6068.el b/lisp/mail/rfc6068.el index 8f0b4234410..cfa51196000 100644 --- a/lisp/mail/rfc6068.el +++ b/lisp/mail/rfc6068.el | |||
| @@ -39,7 +39,8 @@ string instead of decoding as utf-8." | |||
| 39 | (buffer-string)))) | 39 | (buffer-string)))) |
| 40 | (if inhibit-decode | 40 | (if inhibit-decode |
| 41 | string | 41 | string |
| 42 | (decode-coding-string string 'utf-8)))) | 42 | (let (inhibit-eol-conversion) |
| 43 | (decode-coding-string string 'utf-8-dos))))) | ||
| 43 | 44 | ||
| 44 | (defun rfc6068-parse-mailto-url (mailto-url) | 45 | (defun rfc6068-parse-mailto-url (mailto-url) |
| 45 | "Parse MAILTO-URL, and return an alist of header-name, header-value pairs. | 46 | "Parse MAILTO-URL, and return an alist of header-name, header-value pairs. |