This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: DD converts LF -> CR / LF

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   

Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Thunderbird -


Unsubscribe info:
Problem reports:

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