Mail Archives: cygwin/2000/05/01/04:41:19
------=_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--
- Raw text -