Re: io.popen binary write compatibility
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: io.popen binary write compatibility
- From: Enrico Colombini <erix@...>
- Date: 2014年9月25日 17:56:10 +0200
On 25/09/2014 3.43, Luiz Henrique de Figueiredo wrote:
In Posix, the only possible modes for popen are 'r' and 'w':
http://pubs.opengroup.org/onlinepubs/009695399/functions/popen.html
To quote: "if mode is any other value, the result is undefined."
Thanks. Here I have a problem, because my workaround (try 'wb' first,
use 'w' if I get nil) is not guaranteed to work.
Should I detect the host system (something that I tried to avoid) or is
there a cleaner solution?
--
Enrico