delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/12/20:18:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dean Ferreyra" <dferreyra AT igc DOT org>
To: <cygwin AT cygwin DOT com>
Cc: <rcs-bugs AT cs DOT purdue DOT edu>
Subject: RCS 5.7 and 5.7-2: Patch for potential solution to CR/LF problems
Date: Fri, 12 Apr 2002 17:17:59 -0700
Message-ID: <CAEPKHCBFGLHAKICPCCLAEKJCEAA.dferreyra@igc.org>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Hello,

I created patches for RCS to take care of its CR/LF problems.  I have placed
them here, http://pages.sbcglobal.net/dferreyra/, since I could not tell if
attachments to this list are accepted.

The patch-rcs-5.7-for-cygwin.diff patch is for the RCS source from the
official RCS home page for RCS version 5.7. The
patch-rcs-5.7-2-for-cygwin.diff patch is for the RCS source from Cygwin for
RCS version 5.7-2.

Here are the changes I made:

1. When RCS needs to add $Log...$ lines to the source, it now scans to the
end of the $Log...$ line to see how it is terminated.  If it sees a
carriage-return/line-feed pair, it terminates the lines it adds with
carriage-return/line-feed.  This allows RCS to follow the individual file's
own end-of-line convention, irrespective of the underlying operating system
or in Cygwin's case the type of the mount.

2. When RCS is redirecting to a file, it now forces binary mode if the
operating system supports it (i.e. Cygwin).  This allows rcsdiff to
correctly report differences on text-mounted directories, instead of
reporting that every line has changed.

3. Small changes to conf.sh and rcslex.c that allowed me to configure and
build.

I have my own small tests that I run to make sure RCS is working.  Also, I
use RCS every day, but this latest change is new so I haven't used it much.
If others choose to use these patches, I hope they will test the resulting
RCS programs thoroughly before using them!

Any feedback is welcome.

And, thank goodness for Cygwin!

Dean


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019