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:
parent
daebae3d8c
commit
ee485a8387
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user