[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] Use O_BINARY to detect whether to pass "rb" to popen
From: |
cowan |
Subject: |
Re: [PATCH 1/2] Use O_BINARY to detect whether to pass "rb" to popen |
Date: |
Fri, 22 May 2015 12:20:23 -0400 |
User-agent: |
SquirrelMail/1.4.21 |
Filipe Brandenburger scripsit:
> Tested it on a Linux/glibc system and on Windows and cygwin.
Text mode on Cygwin is pretty much a dead duck by now. Given
a simple "r" or "w", Cygwin will assume text mode only if
(1) the pathname is in Posix format, (2) the path is on a
mounted file system rather than one beginning /cygdrive, (3)
the file system is explicitly mounted in text mode (which is
never the default). Otherwise, text mode is only obtained
with the explicit and non-standard "rt" and "wt" open flags.
So Cygwin applications, like other Posix applications, mostly
have to take care of newlines themselves, either by a
universal-newline convention or in some other way.
See <https://cygwin.com/cygwin-ug-net/using-textbinary.html>.
--
John Cowan http://www.ccil.org/~cowan address@hidden
I am expressing my opinion. When my honorable and gallant friend is
called, he will express his opinion. This is the process which we
call Debate. --Winston Churchill
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, (continued)
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/21
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Eli Zaretskii, 2015/05/21
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/21
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Eli Zaretskii, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Andreas Schwab, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/22
- [PATCH 1/2] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/22
- [PATCH 2/2] Be more careful in guarding against pathological "begin" lines, Filipe Brandenburger, 2015/05/22
- Re: [PATCH 1/2] Use O_BINARY to detect whether to pass "rb" to popen,
cowan <=
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/23
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/29
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/29
- Re: [PATCH 0/4] Cross compiling sharutils, Eric Blake, 2015/05/21
- Re: [PATCH 0/4] Cross compiling sharutils, Eli Zaretskii, 2015/05/21
- Re: [PATCH 0/4] Cross compiling sharutils, Filipe Brandenburger, 2015/05/22
- Re: [PATCH 0/4] Cross compiling sharutils, Eli Zaretskii, 2015/05/22
- Re: [PATCH 0/4] Cross compiling sharutils, Eric Blake, 2015/05/22