Commit ee485a83 authored by Pavel Janík's avatar Pavel Janík

(image-type-from-file-header): Make temporary buffer unibyte.

parent daebae3d
......@@ -99,6 +99,7 @@ be determined."
(setq file (expand-file-name file data-directory)))
(setq file (expand-file-name file))
(let ((header (with-temp-buffer
(set-buffer-multibyte nil)
(insert-file-contents-literally file nil 0 256)
(buffer-string))))
(image-type-from-data header)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment