mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Read & write envvar file as utf-8 #3044
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user