Skip to content

Commit

Permalink
Set LANGUAGE instead of LANG env var as that has higher precedence
Browse files Browse the repository at this point in the history
Hopefully this is a better fix instead of
cd33b6e.
  • Loading branch information
kaushalmodi committed Aug 28, 2018
1 parent 31156be commit 99d3549
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
@@ -1,4 +1,4 @@
# Time-stamp: <2018-08-28 12:20:14 kmodi>
# Time-stamp: <2018-08-28 12:26:24 kmodi>

# Makefile to export org documents to md for Hugo from the command line
# Run just "make" to see usage examples.
Expand Down Expand Up @@ -101,8 +101,9 @@ help:
# version that ships with Emacs and then run the stuff in --eval that
# loads the new Org version.. and thus we'll end up with mixed Org in
# the load-path.
# The LANG env var is hard-coded to "en_US.UTF-8" so that the Locale
# auto-detection test always passes.
#
# The LANGUAGE env var is hard-coded to "en_US.UTF-8" so that the
# Locale auto-detection test always passes.
emacs-batch:
@echo ""
@echo "$(ORG_FILE) ::"
Expand All @@ -111,7 +112,7 @@ emacs-batch:
(toggle-debug-on-error)\
(setenv \"OX_HUGO_ELPA\" \"$(OX_HUGO_ELPA)\")\
(when (> (length \"$(TIMEZONE)\") 0) (setenv \"TZ\" \"$(TIMEZONE)\"))\
(setenv \"LANG\" \"en_US.UTF-8\")\
(setenv \"LANGUAGE\" \"en_US.UTF-8\")\
(setq-default make-backup-files nil)\
(load-file (expand-file-name \"setup-ox-hugo.el\" \"$(OX_HUGO_TEST_DIR)\"))\
)" $(ORG_FILE) \
Expand Down

0 comments on commit 99d3549

Please sign in to comment.