Read & write envvar file as utf-8 #3044
This commit is contained in:
parent
500e078e12
commit
21fda9af60
2 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,7 @@ unreadable. Returns the names of envvars that were changed."
|
|||
(env
|
||||
(with-temp-buffer
|
||||
(save-excursion
|
||||
(setq coding-system-for-read 'utf-8)
|
||||
(insert "\0\n") ; to prevent off-by-one
|
||||
(insert-file-contents file))
|
||||
(save-match-data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue