Ethereal-dev: Re: [Ethereal-dev] About tvb_find_line_end

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sat, 11 Nov 2000 11:41:42 -0800
On Sat, Nov 11, 2000 at 04:47:13PM +0200, Heikki Vatiainen wrote:
> Would it be useful or break things if
> tvb_find_line_end() was augmented to also treat a plain CR as a
> line ending?

It would mean that LF/CR would be treated as containing a blank line,
but, given that LF/CR isn't, as far as I know, supported as a line
ending by any of the protocols currently using "tvb_find_line_end()",
I'd be inclined to have it treat CR not followed by LF as a line ending,
and worry about handling LF/CR only if we see another capture with it -
and, even then, perhaps not worry about it, as using LF/CR as a line
ending might confuse a lot of receivers for text-line-based protocols.