On Sun, 1 May 2011, Peter Münster wrote:
Aditya Mahajan <[email protected]> writes:
(but I don't see why locale should be different when a
program is run from inside context then when it is run from a shell).
Taco can surely better explain why. I think somewhere in the luatex
manual, he explains why luatex sets locale to "C".
To see the differences in the environment, just do "set >/tmp/set-shell"
and run context on:
--8<---------------cut here---------------start------------->8---
\starttext
\ctxlua{os.execute"set >/tmp/set-context"}
\stoptext
--8<---------------cut here---------------end--------------->8---
Hmm... I get
$context --pipe
...
...
*\directlua{os.execute("locale")}
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
so context no longer changes the locale.
Aditya___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________