[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Is it possible to output LF without CR under Windows? Lua 5.3
- From: 张睿 <zrui16@...>
- Date: Mon, 18 May 2015 12:20:30 +0800
It's CRT (not lua) that does the translation.
In C, one can call _setmode( _fileno( stdout ), _O_BINARY ) to set output to binary mode.
I don't see how it can be done directly in lua.
-----Original Message-----
From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On Behalf Of tonyp@acm.org
Sent: Monday, May 18, 2015 3:48 AM
To: Lua mailing list
Subject: Re: Is it possible to output LF without CR under Windows? Lua 5.3
No file. I'm interested in stdout as I want to pipe it to another command.
Can I re-open stdout in binary mode?
-----Original Message-----
From: Pierre Chapuis
Sent: Sunday, May 17, 2015 10:44 PM
To: Lua mailing list
Subject: Re: Is it possible to output LF without CR under Windows? Lua 5.3
> Any ideas how to output LFs only under Windows?
Open the file in binary mode.