[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A method to set stdin and stdout to binary mode?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 23 Oct 2006 18:50:08 -0300
> _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