Re: DD converts LF -> CR / LF

2005-05-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Christopher Faylor on 5/8/2005 5:03 PM: >>Hmm, overriding the explicit advice of the system administrator? How >>common is it for file systems to be mounted in text mode? Why would >>anyone do such a thing? If it's sufficiently rare, th

Re: DD converts LF -> CR / LF

2005-05-08 Thread Christopher Faylor
On Sun, May 08, 2005 at 08:02:30AM -0700, Paul Eggert wrote: >Eric Blake <[EMAIL PROTECTED]> writes: >>it now defaults to the underlying mount mode when the user does not >>specify binary or text. In my opinion, dd should default to binary >>when neither text nor binary is specified > >Hmm, overri

Re: DD converts LF -> CR / LF

2005-05-08 Thread Sebastian Schuberth
Paul Eggert wrote: > Eric Blake <[EMAIL PROTECTED]> writes: > >>it now defaults to the underlying mount mode when the user does not >>specify binary or text. In my opinion, dd should default to binary >>when neither text nor binary is specified > > Hmm, overriding the explicit advice of the sys

Re: DD converts LF -> CR / LF

2005-05-08 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > it now defaults to the underlying mount mode when the user does not > specify binary or text. In my opinion, dd should default to binary > when neither text nor binary is specified Hmm, overriding the explicit advice of the system administrator? How commo

Re: DD converts LF -> CR / LF

2005-05-07 Thread Sebastian Schuberth
>>>2005-05-06 Paul Eggert <[EMAIL PROTECTED]> >>> >>> * NEWS: dd has new iflag= and oflag= flags "binary" and "text". >>> * doc/coreutils.texi (dd invocation): Document it. >>> * src/dd.c (flags, usage): Support it. > > That's okay for a start, but it now defaults to the underlying m

Re: DD converts LF -> CR / LF

2005-05-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Paul Eggert on 5/6/2005 12:01 PM: > That looks pretty complicated. How about if we just rely on "open" > and "fcntl" to do the work? If they don't work, they should. > > I installed this into coreutils: > > 2005-05-06 Paul Eggert <[E

Re: DD converts LF -> CR / LF

2005-05-06 Thread Paul Eggert
That looks pretty complicated. How about if we just rely on "open" and "fcntl" to do the work? If they don't work, they should. I installed this into coreutils: 2005-05-06 Paul Eggert <[EMAIL PROTECTED]> * NEWS: dd has new iflag= and oflag= flags "binary" and "text". * doc/co

Re: DD converts LF -> CR / LF

2005-05-06 Thread Brian Dessent
Eric Blake wrote: > Predefining O_BINARY as the default input_flags and output_flags is a > stopgap measure. While it is fine for other programs, such as od, to Doesn't that overly complicate things? Seems to me that whenever you use dd you are interested in copying fixed record length data. I

Re: DD converts LF -> CR / LF

2005-05-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Brian Dessent on 5/6/2005 2:06 AM: > Sebastian Schuberth wrote: > >>my mounts are all text mode, i.e. the "Default Text File >>Type" is "DOS". Nevertheless, shouldn't >> >>dd if=test_unix.txt of=text.txt >> >>create an exact copy of "test