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:
Protesilaos Stavrou 2022-06-16 17:23:56 +03:00
parent f193199c88
commit 85b5290e8b
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -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))))