1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

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

This commit is contained in:
Pavel Janík 2002-03-11 13:32:22 +00:00
parent daebae3d8c
commit ee485a8387

View File

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