[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: diff bug with 2 files nearly identical content
From: |
Dave |
Subject: |
Re: diff bug with 2 files nearly identical content |
Date: |
Sat, 17 Jan 2004 11:44:41 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031030 |
Hi. I found the problem now, misc0.c was not using unix LF text format.
misc1.c was in unix LF format. I thought diff would ignore LF/CRLF changes?
diff -ud misc0.c misc1.c
Sorry, your message didn't make it exactly clear where misc0.c and
misc1.c began and ended, so I couldn't reproduce your bug.
(hope my mail client did not change the format of the attachments)
OK. when i run diff as above the entire misc0.c is removed in the patch
(-) then the entire misc1.c is added (+). the only difference i see
between both two files is this :-
+/* long lines which are only changes test
+sfdf
+long lines which are only changes test
+
+long lines which are only changes test
+long lines which are only changes test
+long lines which are only changes test
+long lines which are only changes test
+
+ sfdsdfsdf
+
+ long lines which are only changes testlong lines which are only
changes test
+ long lines which are only changes testlong lines which are only
changes test
+
+ sfd
+
+ fsdf
+ sdf
+
+sfd
+
+ long lines which are only changes test*/
+
can diff be set into a mode which ignores text line endings and forces
the output to either LF or CRLF format text? I see no mention of
unix/win32/mac text file support in man or info pages btw. thanks, dave