21 May
2008
21 May
'08
2:07 p.m.
Yue Wang wrote:
Hi, Taco
That is tricky. Should I return 'cygwin' in that case? it is neither windows nor unix.
As far as I am concerned, you need not to convert the string return by uname() into the previous label used in LuaTeX. This keeps LuaTeX simple and easy to maintain. I think os.name() should return a table contains five strings: {sysname=xxx,nodename=xxx,release=xxx,version=xxx,machine=xxx} Leave the corresponding code to higher level(for example, ConTeXt)
I could make os.name be the sysname from uname(), but a table is not a name and besides that approach would not work for win32. Best wishes, Taco