From 3c8a2a655fcab29049c03c5764eb3707563a41f8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 11 Dec 2020 15:03:55 -0500 Subject: [PATCH] Fix envvar file encoding for Windows users --- core/cli/env.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cli/env.el b/core/cli/env.el index 9467858bd..4fcb84b05 100644 --- a/core/cli/env.el +++ b/core/cli/env.el @@ -92,7 +92,7 @@ default, on Linux, this is '$SHELL -ic /usr/bin/env'. Variables in (process-environment doom--initial-process-environment)) (when (or force-p (not (file-exists-p 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") (if (file-exists-p env-file) "Regenerating" @@ -104,7 +104,7 @@ default, on Linux, this is '$SHELL -ic /usr/bin/env'. Variables in (goto-char (point-min)) (insert (concat - "# -*- mode: sh -*-\n" + "# -*- mode: sh; coding: utf-8-unix -*-\n" "# ---------------------------------------------------------------------------\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"