[comp.text] Common TeX annoyance bug

mark@comp.vuw.ac.nz (Mark Davies) (02/27/88)

Common TeX 2.1 has an annoyance bug in that it prints what should be the
first line of output as two lines. eg.

This is Common TeX, Version 2.1.1 (preloa
ded format=lplain 88.1.19)

I finally got sufficiently bugged with this to sit down and track it down.
Turns out the problem is the variable term_offset wasn't getting reset in
the dumped latex.  A quick check of tex.web showed that tally and
file_offset should probably be reset as well.  The following patch fixes.

*** tex.c~	Fri Dec  4 15:38:58 1987
--- tex.c	Sat Feb 27 14:04:08 1988
***************
*** 61,68 ****
  	if (ready_already != 314159) 
  		initialize();
  	ready_already = 314159;
- 	print(banner);
  	selector = TERM_ONLY;
  	if (format_ident == 0)
  		print(" (no format preloaded)");
  	else print_str(format_ident);
--- 61,69 ----
  	if (ready_already != 314159) 
  		initialize();
  	ready_already = 314159;
  	selector = TERM_ONLY;
+ 	tally = 0; term_offset = 0; file_offset = 0;
+ 	print(banner);
  	if (format_ident == 0)
  		print(" (no format preloaded)");
  	else print_str(format_ident);
-- 
Domainised:  mark@comp.vuw.ac.nz	Bang form: ...!uunet!vuwcomp!mark