This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How is textmode/binmode determined in Cygwin 1.1.0 net release for pipes?

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:  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \

-----Original Message-----
From: Chris Faylor []
Sent: Thursday, April 27, 2000 11:46 PM
To: ''
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
>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


Want to unsubscribe from this list?
Send a message to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]