Subject: bug#5296 closed by Dan Nicolaescu <[email-masked]> (Re: bug#5296: vc-rcs rcsdiff -u1 -> -u -1)

From: [email-masked] (Emacs bug Tracking System)
Date: Mon, 04 Jan 2010 03:56:02 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#5296: vc-rcs rcsdiff -u1 -> -u -1

It has been closed by Dan Nicolaescu <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Dan Nicolaescu <[email-masked]> by
replying to this email.

-- 
5296: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5296
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#5296: vc-rcs rcsdiff -u1 -> -u -1
From: Dan Nicolaescu <[email-masked]>
To: [email-masked] (Karl Berry)
Cc: [email-masked]
Date: Sun, 3 Jan 2010 19:55:42 -0800 (PST)
List-Id: <debbugs-submit.debbugs.gnu.org>

[email-masked] (Karl Berry) writes:

  >     Do you set `diff-switches' to "-u1" ?
  > 
  > You're completely right (I did that umpteen years ago).

In that case we can close the bug.

Subject: vc-rcs rcsdiff -u1 -> -u -1
From: [email-masked] (Karl Berry)
To: [email-masked]
Date: Sat, 2 Jan 2010 22:49:43 GMT
List-Id: <debbugs-submit.debbugs.gnu.org>

In Emacs 23.1, doing vc-diff on an RCS file results in an error with
GNU diff 2.8.1 (or later):

/usr/bin/diff: `-1' option is obsolete; use `-U 1'                          
..

The *Messages* buffer reports:
vc-do-command: Running rcsdiff -q   -p -u1 maintainers...FAILED (status 2)

I could not quickly tell where the invocation was in vc-rcs.el, but
afaik replacing -u1 with -u 1 (or -U 1) is the solution.  (The workaround for
users is to set _POSIX2_VERSION=0 in the environment.)

karl