This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: DD converts LF -> CR / LF
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/