Skip to main content.
home | support | download

Back to List Archive

[SWISH-E:70] Indexing bug when last char != whitespace (fwd)

From: Paul J. Lucas <pjl(at)not-real.ptolemy.arc.nasa.gov>
Date: Mon Dec 15 1997 - 17:31:49 GMT
	Is anybody going to fix this bug?  There has yet to be any
	response at all.

	- Paul

---------- Forwarded message ----------
Date: Thu, 13 Nov 1997 17:23:32 -0800
From: "Paul J. Lucas" <pjl@ptolemy.arc.nasa.gov>
To: Multiple recipients of list <swish-e@sunsite.berkeley.EDU>
Subject: [SWISH-E:70] Indexing bug when last char != whitespace

	It appears as though there is a bug in:

		index.c:countwords()

	in that if a text file has EOF immediately after a word
	character, e.g.:

		somefile.txt
		------------
		Now is the time<EOF>

	where EOF is right after the 'e' in "time," then the last word
	on the line, in this case "time", is not indexed.

	Anybody care to make an "official" fix?

	- Paul J. Lucas
	  NASA Ames Research Center		Caelum Research Corporation
	  Moffett Field, California		San Jose, California
	  <pjl AT ptolemy DOT arc DOT nasa DOT gov>
Received on Mon Dec 15 09:39:49 1997