delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/12/09:25:33

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019