This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
AW: [BUG] Multi-line macros in gcc broken with CR/LF
- To: cygwin at sources dot redhat dot com
- Subject: AW: [BUG] Multi-line macros in gcc broken with CR/LF
- From: Michael dot Ring at t-mobil dot de
- Date: 13 Oct 2000 13:20:45 +0000
- Autoforwarded: FALSE
- Discarded-X400-MTS-Extensions: (43) (12) (2) (135) (115) (5) (6) (3)
- Original-Encoded-Information-Types: (1) (0) (10021) (7) (1) (0) (6), (1) (0) (10021) (7) (1) (0) (1)
- X400-Content-Identifier: E1546IRM3AR58
- X400-Content-Type: P2-1988 (22)
- X400-MTS-Identifier: [/PRMD=abc/ADMD=xyz/C=aq/;66B5CC8C11D4A11C00AA8B88]
- X400-Originator: Michael.Ring@t-mobil.de
- X400-Received: by mta MB400-dxcast in /PRMD=abc/ADMD=xyz/C=aq/;Relayed ; 13 Oct 2000 13:20:45 +0000
- X400-Received: by mta MB400-DXCW04 in /PRMD=abc/ADMD=xyz/C=aq/;Relayed ; 13 Oct 2000 13:20:45 +0000
- X400-Recipients: cygwin@sources.redhat.com
Chris Abbey wrote:
>
> At 10:27 10/12/00 -0700, Earnie Boyd wrote:
> >Interesting. I would be curious to see the output of `cygcheck -s -r -v'
> >pasted in a mail. Are you sure that *all* of your mount points are set for
> >binary processing? Including the pseudo mount point /cygdrive?
> >
> >The only reason I'm asking is that I use patch on a daily basis and
> >haven't had
> >problems.
>
> depending on how you use patch, might this be related to the pipe issue Chris
> very recently fixed? i.e. some people cat (or bzcat, etc) patches into the
> patch command, while others use the command options to specify source
location.
Yes. I use patch by redirecting the patches file to the input.
The problem that you get cr/lf at line endings is in patch.
the current patch uses NT-Environment vars (TMP or TEMP or TMPDIR). Normally the
directories that those env vars point to are accessed in textmode. Patch saves a
temporary file in TEMP, it gets cr/lf'ed then it seems to open the tmpfile again
in binmode ==> the result is a cr/lf'ed file.
I have provided a patched version as a test version in cygwin-apps, try this
version or simply unset TMP TEMP TMPDIR in your .profile
Hope that helps,
Michael Ring
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com