[comp.text] Bug report on Common TeX.

monardo@renoir.Berkeley.EDU (Pat Monardo) (01/13/87)

If you notice strange behavior with a file
that you are certain worked before, it could
be that you have files with no NL at the end
of the last line. We seem to have a NL daemon
here at berkeley, which adds NLs to the end of
every file, so this never was a problem.

Check input_ln (io.c) for this:

if (c == EOF)
	return FALSE;

change to:

if (c == EOF) {
	if (last == first)
		return FALSE;
	else 
		break;
}

Sorry, dont know how to send diffs or patches, yet.
By the way, I found the last bug which was preventing
me from running Common TeX as a 64 bit machine yesterday.
(if you really want to know, change
eqtb[cur_cs].i = eqtb[FROZEN_RELAX].i to
eqtb[cur_cs] = eqtb[FROZEN_RELAX]).
Of course, this doesnt matter if you are running 32bit TeX.
If you get misplaced output then you need the fixed
version of dvi.c. Its more likely that you have it already.
Thanks to Carl Shapiro for getting his hands dirty.
Put it through the paces. I hope to have all bugs out
before January is over.


	Pat Monardo
	monardo@renoir.berkeley.edu