Re: RCS file corruption.

2012-06-22 Thread Andrey Repin
Greetings, Richard Gribble! >> > One thing I may have failed to mention is that (anecdotaly - I didn't >> > take copious notes) the problem usually appeared when I had lines with >> > two "^M"s at the end.  I suspect this happens because sometimes I edit >> > the files on my Linux box and sometime

RE: RCS file corruption.

2012-06-21 Thread Wagemans, Peter
Brian Wilson wrote: > From what I've read in this discussion, I think the issue is that > the '^M' characters may not be seen by RCS as an EOL. The problem occurs in a loop that copies one character at a time to move the entire content of the work file into the new RCS file as the latest version

Re: RCS file corruption.

2012-06-21 Thread Brian Wilson
> I suspect this happens because sometimes I edit the files on my Linux box and sometimes on my Windows box. If I remember correctly, RCS (and the earlier SCCS systems) were designed to work with source code (i.e. text files). They determined file changes based on lines added or deletes and ha

Re: RCS file corruption.

2012-06-21 Thread Richard Gribble
On Thu, Jun 21, 2012 at 4:44 PM, Andrey Repin wrote: > > Greetings, Richard Gribble! > > > One thing I may have failed to mention is that (anecdotaly - I didn't > > take copious notes) the problem usually appeared when I had lines with > > two "^M"s at the end.  I suspect this happens because some

Re: RCS file corruption.

2012-06-21 Thread Andrey Repin
Greetings, Richard Gribble! > One thing I may have failed to mention is that (anecdotaly - I didn't > take copious notes) the problem usually appeared when I had lines with > two "^M"s at the end.  I suspect this happens because sometimes I edit > the files on my Linux box and sometimes on my Wind

Re: RCS file corruption.

2012-06-21 Thread Richard Gribble
On Thu, Jun 21, 2012 at 5:05 AM, Wagemans, Peter wrote: > > > Richard Gribble wrote: > > > I have experienced this problem several times.  In my case it seemed > > to be a problem between 'Unix' and 'DOS' files.  In each case, I > > have been able to fix it by editing the RCS file using vim and >

RE: RCS file corruption.

2012-06-21 Thread Wagemans, Peter
Richard Gribble wrote: > I have experienced this problem several times. In my case it seemed > to be a problem between 'Unix' and 'DOS' files. In each case, I > have been able to fix it by editing the RCS file using vim and > deleting all the extraneous carriage returns RCS should be able to h

Re: RCS file corruption.

2012-06-20 Thread Otto Meta
> I have experienced this problem several times. In my case it seemed > to be a problem between 'Unix' and 'DOS' files. In each case, I have > been able to fix it by editing the RCS file using vim and deleting all > the extraneous carriage returns - :%s/^M$// Sometimes I've had > to do it twice

Re: RCS file corruption.

2012-06-20 Thread Richard Gribble
I have experienced this problem several times.  In my case it seemed to be a problem between 'Unix' and 'DOS' files.  In each case, I have been able to fix it by editing the RCS file using vim and deleting all the extraneous carriage returns - :%s/^M$// Sometimes I've had to do it twice. Once I d