Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Norbert DOT Schulze AT t-online DOT de (Norbert Schulze) To: Subject: FW: Re: Patch output has DOS line ending Date: Mon, 1 May 2000 11:41:53 +0200 Message-ID: <000701bfb351$7e201d60$d486b8d4@nexus> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0008_01BFB362.41A8ED60" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Sender: 340075986915-0001 AT t-dialin DOT net ------=_NextPart_000_0008_01BFB362.41A8ED60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable -----Original Message----- From: Michael Ring [mailto:m DOT ring AT ndh DOT net] Sent: Monday, May 01, 2000 10:27 AM To: cygwin AT sourceware DOT cygnus DOT com Cc: Norbert Schulze Subject: Re: Patch output has DOS line ending On Sun, 30 Apr 2000 11:40:45 +0200, you wrote: >Even if the input file has unix format and the patch file has unix = format >and the mount mode is binary >the patch.exe from cygwin 1.1.0 generates an output file with DOS = (CR/LF) >line ending. The binary >option doesn't work help says: > >--binary Read and write data in binary mode (no effect on this = platform). > >Norbert > > I have had the same problem but thought I was only doing something wrong. As you have the same problerm I will do the following: - Send you a patched version to your address - Attach the patch I did to this mail. The patch works with the patch-2.5 release from ftp.gnu.org but should also work with the version from cygwin Greetings, Michael Ring ------=_NextPart_000_0008_01BFB362.41A8ED60 Content-Type: application/octet-stream; name="patch-2.5-cygwin.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch-2.5-cygwin.patch" --- patch-2.5_o/patch.c Sat Jul 05 10:32:24 1997=0A= +++ patch-2.5/patch.c Fri Mar 24 10:20:30 2000=0A= @@ -1095,8 +1095,8 @@=0A= create_output_file (name)=0A= char const *name;=0A= {=0A= - int fd =3D create_file (name, O_WRONLY | binary_transput, = instat.st_mode);=0A= - FILE *f =3D fdopen (fd, binary_transput ? "wb" : "w");=0A= + int fd =3D create_file (name, O_WRONLY | O_BINARY, instat.st_mode);=0A= + FILE *f =3D fdopen (fd, O_BINARY ? "wb" : "w");=0A= if (! f)=0A= pfatal ("can't create `%s'", name);=0A= return f;=0A= ------=_NextPart_000_0008_01BFB362.41A8ED60 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------=_NextPart_000_0008_01BFB362.41A8ED60--