lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>   _setmode(fileno(stdin), O_BINARY);
>   _setmode(fileno(stdout), O_BINARY);
> 
> So...I'm looking for a way to access stdin and stdout in binary mode. 
> Is there any way to make this happen in Lua?

Not from stock Lua. You need to add external C code that provides this.
A simple C library built as a DLL suffice if you cannot build your own
Lua interpreter that has those two lines.
--lhf