Test: coreutils-5.3.0-6 [Was: DD converts LF - CR / LF]

2005-05-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sebastian Schuberth on 5/6/2005 1:19 AM: dd if=test_unix.txt of=text.txt create an exact copy of test_unix.txt? If you are interested, try the coreutils-5.3.0-6 test release (in setup, you have to specifically request the Exp radio

Re: DD converts LF - CR / LF

2005-05-12 Thread Eric Blake
-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

Re: DD converts LF - CR / LF

2005-05-12 Thread Corinna Vinschen
On May 12 07:25, Eric Blake wrote: -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

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, then dd

Re: DD converts LF - CR / LF

2005-05-09 Thread Christopher Faylor
On Mon, May 09, 2005 at 06:52:29AM -0600, Eric Blake wrote: -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

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 common is

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 system

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, overriding the

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 [EMAIL

Re: DD converts LF - CR / LF

2005-05-07 Thread Christopher Faylor
On Sat, May 07, 2005 at 09:14:17AM -0600, Eric Blake wrote: 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

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 mount mode when the

DD converts LF - CR / LF

2005-05-06 Thread Sebastian Schuberth
Hello, 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_unix.txt? It seems DD doesn't open the file in binary mode (like even VIM does), because if test_unix.txt contains LF line ends, text.txt

Re: DD converts LF - CR / LF

2005-05-06 Thread Brian Dessent
Sebastian Schuberth wrote: my mounts are all text mode, i.e. the Default Text File Type is DOS. Nevertheless, shouldn't Yeah, that does seem a bit broken. You can solve that with something like the following: --- dd.c.orig 2005-05-06 01:03:01.12500 -0700 +++ dd.c2005-05-06

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_unix.txt? It

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. It

Re: DD converts LF - CR / LF

2005-05-06 Thread Christopher Faylor
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

Re: DD converts LF - CR / LF

2005-05-06 Thread Christopher Faylor
On Fri, May 06, 2005 at 06:52:15AM -0700, Brian Dessent wrote: 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