This is the output from LaTeX (MWE is at the end of this post):
Running
LaTeX' on
luatex_test' with ``lualatex --jobname=luatex_test -file-line-error -interaction=nonstopmode "\input" luatex_test.tex'' Unable to read environment locale:exit now.
If I set TeX engine to be latex
instead of lualatex
in Emacs (I use version 25.1 (9.0)), it completes compilation. Also, the compilation completes if I call lualatex
from the terminal.
Running locale
in Emacs's shell gives:
LANG="en_DE.UTF-8" LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=
My MWE:
\documentclass{article}
\begin{document}
Test compilation with luatex.
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
Which variable in Emacs do I need to customize?
LANG="en_US.UTF-8"
. Answers in this thread suggest this should work (since it's nothing arcane likeen_DE
). RunningLANG= lualatex file.tex
works (empty value).