Bug 690803

Summary: Shows entire file as different
Product: [Fedora] Fedora Reporter: h4ck3rpunk
Component: diffutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-28 12:18:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
I tried making a patch between wonderland qvm and lakitu7qvm none

Description h4ck3rpunk 2011-03-25 12:28:49 UTC
Description of problem:
When I use diff, both files are always marked as entirely different

Additional info:
I just installed it from yum without any additional repos

Comment 1 Tim Waugh 2011-03-25 12:36:24 UTC
Please show a test case including files to compare and command line used.

Comment 2 h4ck3rpunk 2011-03-25 19:27:08 UTC
Sorry... I'm new

diff -rupN Release_5.5/ WonderQVM-v1.0/ > wonderland.patch

...is the command I used. The file shows the entire original file as red and the new file as green (might have that backwards...) I'll attach the .patch.

Comment 3 h4ck3rpunk 2011-03-25 19:32:53 UTC
Created attachment 487655 [details]
I tried making a patch between wonderland qvm and lakitu7qvm

Does not find any similarities. I used: 

diff -rupN Release_5.5/ WonderQVM-v1.0/ > wonderland.patch

Comment 4 Tim Waugh 2011-03-28 12:18:34 UTC
Thanks for the report.  On this occasion it isn't really a bug.  One of the files uses CR-LR line termination, while the other does not -- so the files are in fact entirely different.  Use the option --strip-trailing-cr to see differences other than line termination differences.

Comment 5 h4ck3rpunk 2011-03-28 23:39:33 UTC
Oh thanks! Sorry about posting a nonbug.