fix(cli): set LC_ALL to force english output
Close: #7331 Co-authored-by: xz-dev <xz-dev@users.noreply.github.com>
This commit is contained in:
parent
7efcbf9208
commit
150ccd6305
2 changed files with 5 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
# -*- coding: utf-8-unix -*-
|
||||
# This is a shebang interpreter for launching Emacs Lisp scripts with Doom's CLI
|
||||
# framework preloaded, plus any environment variables it needs. Use it like so:
|
||||
#
|
||||
|
@ -19,6 +20,9 @@ if [ "$#" -eq 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Prevent garbled non-English output from child processes
|
||||
export LC_ALL=C.UTF-8
|
||||
|
||||
case "$EMACS" in
|
||||
*term*) EMACS=emacs ;; # in {ansi-,v}term
|
||||
*) EMACS="${EMACS:-emacs}" ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue