[Dev-luatex] platform specific functionality

Taco Hoekwater taco at elvenkind.com
Tue Mar 16 09:07:53 CET 2010


Élie Roux wrote:
> 2010/3/15 Taco Hoekwater <taco at elvenkind.com>:
>> Ah, I see. I any case, I have applied your patch already, exactly
>> as-is. I'll think about a unix solution.
> 
> Hello,
> 
> I just thought about something: in a script we need to detect if,
> under windows, luatex is run under cygwin or not (cygwin and
> non-cygwin are the same binary for me). Currently we do something like
> 
> local system = io.popen("uname -s"):read("*l")

You could test against os.uname().

Best wishes,
Taco


More information about the dev-luatex mailing list