mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix envvar file encoding for Windows users
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user