Skip to content

Commit cb805e0

Browse files
0x6d6e647ajcs090218
authored andcommitted
Rename 'LANG' variable in script/compile to avoid bug.
If 'LANG' is set to 'pascal' in script/compile, when `emacs -Q ...` is launcher emacs will exit with the following error: Language environment not defined: "Punjabi" This is because 'LANG' is a locale setting variable so 'pascal' is interpreted as 'pa' which is code for the Punjabi locale.
1 parent 5eb2455 commit cb805e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/compile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ set -euo pipefail
1616
here=$(cd "$(dirname "$BASH_SOURCE")"; pwd)
1717
PROJECT_ROOT=$(cd "$here/.."; pwd)
1818

19-
LANG=$1
19+
PROGLANG=$1
2020

2121
# Parse named parameters.
2222
POSITIONAL=()
@@ -39,15 +39,15 @@ if [ "$target" == "'" ]; then
3939
target=nil
4040
fi
4141

42-
case $LANG in
42+
case $PROGLANG in
4343
(all)
4444
code="(tree-sitter-langs-create-bundle nil $target)"
4545
;;
4646
(changed)
4747
code="(tree-sitter-langs-compile-changed-or-all \"${POSITIONAL[1]:-origin/master}\" $target)"
4848
;;
4949
(*)
50-
code="(tree-sitter-langs-compile '$LANG nil $target)"
50+
code="(tree-sitter-langs-compile '$PROGLANG nil ${target})"
5151
esac
5252

5353
(

0 commit comments

Comments
 (0)