Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <427B258F.90516ACA@dessent.net> Date: Fri, 06 May 2005 01:06:39 -0700 From: Brian Dessent MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: DD converts LF -> CR / LF References: <427B1A65 DOT 5060106 AT tu-bs DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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.125000000 -0700 +++ dd.c 2005-05-06 01:00:07.265625000 -0700 @@ -136,8 +136,12 @@ static int conversions_mask = 0; /* Open flags for the input and output files. */ -static int input_flags = 0; -static int output_flags = 0; +#ifndef O_BINARY +#define O_BINARY 0 +#endif + +static int input_flags = O_BINARY; +static int output_flags = O_BINARY; /* Status flags for what is printed to stderr. */ static int status_flags = 0; ----- It would be up to the coreutils maintainer to decide what to do about this. It could be handled in a number of ways. Brian -- 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/