[NTG-context] t-filter: no table created when Unicode characters are included

Peter Münster pmlists at free.fr
Sun May 1 20:52:12 CEST 2011


Aditya Mahajan <adityam at umich.edu> 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


More information about the ntg-context mailing list