[net.bugs.4bsd] looking for a fix in pi

tb@qucis.UUCP (Tom Bradshaw) (05/01/85)

Has anyone found a fix for the following bug in the pascal compiler?
If someone has found a fix I would like to know.

Thanks
T. Bradshaw (utcsri!qucis!tb)


Description:
	Pix blows up on the second real number read from stdin.
	More precisely, the first real read following the read
	of a real number entered with a decimal point will fail.

Repeat-By:

	Script started on Fri Feb  3 18:36:32 1984
	% cat test2.p
	program cnvx(input,output);
	var 
	        x:real;

	begin
	        readln(x); writeln(x);
	        readln(x); writeln(x);
	end.
	% pix test2.p
	Execution begins...
	1.1
	 1.10000000000000e+00
	1.2

	standard input: Bad data found on real read

	Program error
	Do you wish to enter the debugger? n

	        Error in "cnvx"+2 near line 7.
	Execution terminated abnormally.

	3 statements executed in 0000.80 seconds cpu time.
	%
	script done on Fri Feb  3 18:37:43 1984

Fix:
	Unknown.