Re: [Dev-luatex] uname() volunteer needed
![](https://secure.gravatar.com/avatar/435ac0d0ecd67394ae88a2020214d815.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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