Fix envvar file encoding for Windows users
This commit is contained in:
parent
07db84bfe2
commit
3c8a2a655f
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ default, on Linux, this is '$SHELL -ic /usr/bin/env'. Variables in
|
||||||
(process-environment doom--initial-process-environment))
|
(process-environment doom--initial-process-environment))
|
||||||
(when (or force-p (not (file-exists-p env-file)))
|
(when (or force-p (not (file-exists-p env-file)))
|
||||||
(with-temp-file env-file
|
(with-temp-file env-file
|
||||||
(setq-local coding-system-for-write 'utf-8)
|
(setq-local coding-system-for-write 'utf-8-unix)
|
||||||
(print! (start "%s envvars file at %S")
|
(print! (start "%s envvars file at %S")
|
||||||
(if (file-exists-p env-file)
|
(if (file-exists-p env-file)
|
||||||
"Regenerating"
|
"Regenerating"
|
||||||
|
@ -104,7 +104,7 @@ default, on Linux, this is '$SHELL -ic /usr/bin/env'. Variables in
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(insert
|
(insert
|
||||||
(concat
|
(concat
|
||||||
"# -*- mode: sh -*-\n"
|
"# -*- mode: sh; coding: utf-8-unix -*-\n"
|
||||||
"# ---------------------------------------------------------------------------\n"
|
"# ---------------------------------------------------------------------------\n"
|
||||||
"# This file was auto-generated by `doom env'. It contains a list of environment\n"
|
"# This file was auto-generated by `doom env'. It contains a list of environment\n"
|
||||||
"# variables scraped from your default shell (excluding variables blacklisted\n"
|
"# variables scraped from your default shell (excluding variables blacklisted\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue