Re: [Dev-luatex] uname() volunteer needed
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) Yue Wang
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
participants (2)
-
Taco Hoekwater
-
Yue Wang