bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: History command confused by different line endings


From: Larry Jones
Subject: Re: History command confused by different line endings
Date: Tue, 29 Jan 2002 14:06:37 -0500 (EST)

Bob Kline writes:
> 
> When the history file has lines with mixed line-endings (some \r\n, some
> \n, presumably resulting from the use of different versions of cvs), the
> history command is unable to match O and F records reliably.  This
> happens because the history file is opened in binary mode, and the
> read_hrecs() function is testing explicitly for '\n' as the record
> terminator.  This results in the software thinking that the '\r'
> preceding the '\n' is part of the data for the last field in the record
> (hr->mod).

If the history file is opened in binary mode, using different verisons
of CVS wouldn't make any difference -- the line terminator would always
be \n.  I think 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]