[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Inconsistency between diff and svn diff

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 29 Sep 2009 12:34:02 +0100

On Tue, Sep 29, 2009 at 12:11:01PM +0100, Giulio Troccoli wrote:
> >
> > Try passing the -a flag to diff:
> >
> > -a Treat all files as ASCII text. Normally
> > diff will simply print
> > ``Binary files ... differ'' if files contain
> > binary characters.
> > Use of this option forces diff to produce a diff.
> >
>
> Thanks Stefan. I had already tried with the -a option, only forgot to tell you :-)
>
> Anyway, the result is exactly as for svn diff, it shows me the differences and ends with "\ No newline at end of file". However, diff also show a lot of non printable characters at the end
>
> 137d133
> < ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
> \ No newline at end of file
>
> which I presume it's becuase on the missing newline at the end?

No, you're confusing cause and effect.
The file has binary junk at the end. There also happens to be no newline
character terminating the binary junk.
svn might be filtering out the junk characters for some reason.

Stefan

-- 
printf("Eh???/n");
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2401592
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-29 13:35:04 CEST

This is an archived mail posted to the Subversion Users mailing list.