bug-patch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-patch] handling CR/LF


From: Gyorgy Kovesdi
Subject: [bug-patch] handling CR/LF
Date: Wed, 19 Sep 2012 10:36:22 +0200
User-agent: KMail/4.7.2 (Linux/3.1.10-1.16-desktop; KDE/4.7.2; x86_64; ; )

Hi,

I have GNU patch version 2.6.1.116-33c4 and working in a Windows/Linux 
environment, so i got
a lot of patches with CR/LF terminators, to be handled on my Linux machine 
(OpenSuSE 12.1).
If i try to apply such a patch, the first message is:

(Stripping trailing CRs from patch.)
...

However, the CRs seem not ignored, but handled in a strange way:
 - The CRs of the input is compared with the source, even if the -l 
(--ignore-whitespace) switch is
   given. It does not ignore CR, which is a whitespace, IMHO.
 - The line started with "+++" must not end with CR or CRLF, or else all hunks 
of that file will fail,
   independently from the source match.

Currently i have a script which removes the CRs from lines beginning with 
"+++", it seems resolve
the problem.

Please help me if it is a patch bug, or i do something wrong.

Thanx in advance
Gyorgy Kovesdi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]