Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <42835939.5040406@byu.net>
Date: Thu, 12 May 2005 07:25:13 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: DD converts LF -> CR / LF
References: <427B1A65.5060106@tu-bs.de> <427B258F.90516ACA@dessent.net> <427B70CB.7040101@byu.net> <87oebo1bfa.fsf@penguin.cs.ucla.edu> <427CDB49.8030804@byu.net> <87y8ap92wp.fsf@penguin.cs.ucla.edu> <20050508230338.GB3896@trixie.casa.cgf.cx> <427F5D0D.5030206@byu.net> <20050509145716.GL15665@trixie.casa.cgf.cx>
In-Reply-To: <20050509145716.GL15665@trixie.casa.cgf.cx>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Christopher Faylor on 5/9/2005 8:57 AM:
> 
> As one of the project leads, I am formally asking you to make dd default
> to binary behavior.

With a request like that, you've got it!  Is there any reason why
fcntl(fd, F_SETFL, O_TEXT) does not seem to change the mode if the file is
already open in binary mode?  It required me to use setmode(fd, O_TEXT)
instead.  My local patches are now tested, and default the dd files to
binary if they are not a tty (tty's remain with the underlying behavior,
this is comparable to other programs like od that default to binary).
Then it copies Paul Eggert's upstream idea of adding
[io]flag={text,binary}, but uses setmode to ensure that a user-specified
mode is applied (since fcntl did not want to do it).

Meanwhile, I'm still waiting on Pierre's latest mkdir(2) patch before
`mkdir -p //server/share' will work.  But I can go ahead and release
5.3.0-6 in test status, and bump it to current when cygwin-1.5.17 is
released.  Look for an upload request on cygwin-apps by tomorrow.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCg1k584KuGfSFAYARAurrAJ9Jd/QaVy7MoLiSod2MI5DfDH/2kQCfb682
EAo+ZHsW5tjy1oEnZ0rznpY=
=308L
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

