Date: Thu, 13 Jul 2000 16:08:21 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Olaf van der Spek cc: djgpp AT delorie DOT com Subject: Re: Pipe to sendmail (again) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 13 Jul 2000, Olaf van der Spek wrote: > > Absence of 'b' means *default*, which can still be binary if you (or > > the application, if you are a library) have set the _fmode variable > > appropriately. > > > > In cygwin, the "default" comes from the mount table, and is often > > "binary", so the "t" is a good idea. > > But it caused popen to fail, so it doesn't seem that good to me always. If "wt" fails, it means that the library you are using is non-ANSI. ANSI C defines the "t" flag and requires a complying library to support it (which on Unix means simply to ignore it). If the C library on your machine is not ANSI-compliant, then you indeed should not use "t".