Change envvar coding system buffer locally

This commit is contained in:
Henrik Lissner
2020-05-14 04:13:05 -04:00
parent 21fda9af60
commit a2011232a2
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ unreadable. Returns the names of envvars that were changed."
(env
(with-temp-buffer
(save-excursion
(setq coding-system-for-read 'utf-8)
(setq-local coding-system-for-read 'utf-8)
(insert "\0\n") ; to prevent off-by-one
(insert-file-contents file))
(save-match-data