lua-users home
lua-l archive

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


2015-05-17 21:48 GMT+02:00  <tonyp@acm.org>:
> No file.  I'm interested in stdout as I want to pipe it to another command.
> Can I re-open stdout in binary mode?

Probably not. Manual §6.8 says:

The table io also provides three predefined file handles with their usual
meanings from C: io.stdin, io.stdout, and io.stderr. The I/O library never
closes these files.

Does io.stderr also behave like a text file under Windows?