[Dev-luatex] platform specific functionality

Élie Roux elie.roux at telecom-bretagne.eu
Wed Mar 17 09:09:31 CET 2010


2010/3/16 Taco Hoekwater <taco at elvenkind.com>:
>>
>> local system = io.popen("uname -s"):read("*l")
>
> You could test against os.uname().

Hello,

here is what I get from os.uname() now:

os.uname().sysname: Windows XP
os.uname().machine: i686
os.uname().release: build 2600
os.uname().version: 5.01 Service Pack 3
os.uname().nodename: ROTIMN0L020707

No trace of cygwin, which is normal I guess, as the system calls go
directly to windows, being cygwin-transparent... Any idea of how to
detect cygwin? I must say I don't have any, as you cannot call
cygwin-specific things in the binary...

Thank you!
-- 
Elie


More information about the dev-luatex mailing list