Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <1DB8BA4BAC88D3118B2300508B5A552C0C8CDB@mail.fitlinxx.com> From: David Bolen To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: How is textmode/binmode determined in Cygwin 1.1.0 net releas e for pipes? Date: Thu, 27 Apr 2000 23:51:50 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" I suppose my question can be rephrased as whether or not 1.1.0 changed the default behavior for pipes from b20.1 (without any CYGWIN environment setting)? It was my understanding that the default should be binary, and that's how my previous b20.1 seemed to be working. But 1.1.0 seems to instead be defaulting to text. This would be for pipes opened via the pipe() call, thus without any particular O_* flags. -- David PS: As for checking the source, I'm as up as the next guy for doing that in general, but I also don't feel it a misuse of a mailing list such as this to raise this sort of question. /-----------------------------------------------------------------------\ \ David Bolen \ E-mail: db3l AT fitlinxx DOT com / | FitLinxx, Inc. \ Phone: (203) 708-5192 | / 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \ \-----------------------------------------------------------------------/ -----Original Message----- From: Chris Faylor [mailto:cgf AT cygnus DOT com] Sent: Thursday, April 27, 2000 11:46 PM To: 'cygwin AT sourceware DOT cygnus DOT com' Subject: Re: How is textmode/binmode determined in Cygwin 1.1.0 net release fo r pipes? On Thu, Apr 27, 2000 at 07:02:01PM -0700, Earnie Boyd wrote: >The default mount mode for the 1.1.0 Net Relesae is binary mode. This is a >change from the text mode of b20.1. If your text files contain \r\n then you >need to do one of: > >1) force the mounts back to text >2) tr -d '\r' < somefile > newsomefile && mv newsomefile somefile >3) find one of the dos to unix tools and build it to convert the files. Earnie, this has nothing to do with pipes. Pipes follow the CYGWIN=binmode setting. That's what CYGWIN=binmode is for, actually. The mount command doesn't affect pipes. However, if a pipe is explicitly opened in O_BINARY or O_TEXT mode it should ignore any CYGWIN=[no]binmode setting. Let me repeat my standard observation that this is open source. You can actually check the source code to get answers to these kind of questions. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com