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

Re: 'patch' behaviors

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2001-06-21 23:09:42 CEST

> Not all text files have a newline at the end of the last line.

By definition, they do (unless they're zero-length). I thought I was
pretty clear that I was using "text" as a technical term, not just in
the sense of "something you can look at with cat without making your
xterm go all wonky." Lots of Unix utilities won't work especially
well on files which don't match this technical definition of "text."
Try running a file with no trailing newline through the Solaris or
IRIX "sed" or "nl" and you'll see abnormalities, just to pick two
operating systems and commands out of a hat. "patch" on FreeBSD is
merely the tip of the iceberg.

One of the attractions of the GNU versions of Unix tools is that they
generally work on arbitrary binary files to the greatest extent
possible. Which is great, but we can't rely on this feature in
Subversion unless we're actually bringing in that code (which we can't
do unless it becomes LGPL'd, another side of this discussion).

I don't think there's any disagreement about what we should do; I just
want to make sure people are perceiving the situation properly.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:32 2006

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