DD converts LF -> CR / LF

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Fri May 6 14:40:00 GMT 2005


On Fri, May 06, 2005 at 07:27:39AM -0600, Eric Blake wrote:
>There is still the question on cygwin whether an unspecified
>text/binary mode should always default to binary, or should default to
>the underlying default for that particular mount.

I think that dd should always default to binary unless directed not to
do so.  I don't think anyone would be expecting it to perform automatic
LF->CRLF translations for them since that is not a documented feature of
the utility.

>Meanwhile, I noticed that cygwin permits open("foo", O_RDWR | O_BINARY
>| O_TEXT), although I don't know which of the two modes it chose; I
>think it should instead return EINVAL like setmode(fd, O_BINARY |
>O_TEXT) does.

This behavior is consistent with windows, AFAICT.

cgf

--
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/



More information about the Cygwin mailing list