Aditya Mahajan <[email protected]> writes:

> *\directlua{os.execute("locale")}

Ok, locale outputs something depending on the enviroment. Lets look
directly at the enviroment:

$ CMD="set | grep -e ^LC_ -e ^LANG"

--8<---------------cut here---------------start------------->8---
$ eval $CMD
LC_CTYPE=en_GB.utf8

$ echo '\directlua{os.execute"'$CMD'"}' | context --pipe | grep -e LC_ -e LANG
*LC_COLLATE=C
LC_CTYPE=C
LC_NUMERIC=C
<*> ...ua{os.execute"set | grep -e ^LC_ -e ^LANG"}
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
$ eval $CMD
LANG=en_GB.utf8
LC_CTYPE=en_GB.utf8

$ echo '\directlua{os.execute"'$CMD'"}' | context --pipe | grep -e LC_ -e LANG
*LANG=en_GB.utf8
LC_COLLATE=C
LC_CTYPE=C
LC_NUMERIC=C
<*> ...ua{os.execute"set | grep -e ^LC_ -e ^LANG"}
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
$ eval $CMD
LANG=en_GB.utf8
LC_ALL=en_GB.utf8
LC_CTYPE=en_GB.utf8

$ echo '\directlua{os.execute"'$CMD'"}' | context --pipe | grep -e LC_ -e LANG
FontForge does not support your encoding (utf8), it will pretend the local 
encoding is latin1
FontForge does not support your encoding (utf8), it will pretend the local 
encoding is latin1
*LANG=en_GB.utf8
LC_ALL=en_GB.utf8
LC_COLLATE=C
LC_CTYPE=C
LC_NUMERIC=C
<*> ...ua{os.execute"set | grep -e ^LC_ -e ^LANG"}
--8<---------------cut here---------------end--------------->8---

So, whatever the original enviroment is, context and/or luatex sets
LC_COLLATE=C
LC_CTYPE=C
LC_NUMERIC=C

-- 
           Peter
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to