Fix bug where Unicode chars are not encoded
This was revealed when Frank Ehmsen tried to create a link with German umlauts. Reported on the mailing list: <https://lists.sr.ht/~protesilaos/denote/%3Ccf3d35f8-acfa-5056-cfa4-63a57ea15ef9@eh-is.de%3E>.
This commit is contained in:
parent
f193199c88
commit
85b5290e8b
|
@ -75,7 +75,7 @@ Optional GROUP is a regexp construct for
|
|||
`denote-retrieve--search'."
|
||||
(let ((default-directory (denote-directory)))
|
||||
(with-temp-buffer
|
||||
(insert-file-contents-literally file)
|
||||
(insert-file-contents file)
|
||||
(or (denote-retrieve--search regexp group)
|
||||
nil))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue