[Dev-luatex] platform specific functionality

Taco Hoekwater taco at elvenkind.com
Wed Mar 17 10:25:17 CET 2010



Élie Roux wrote:
> 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...

Maybe a test for the odd fake unix mount structure? Assuming they
still do that, I abandoned cygwin as a 'bad idea' about a decade ago.

Best wishes,
Taco


More information about the dev-luatex mailing list