Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Apr 1995 20:24:44 +0700
From:      "Nickolay N. Dudorov" <nnd@gw.itfs.nsk.su>
To:        freebsd-current@FreeBSD.org
Subject:   Re: PERL4&5 broken in -current and 950322-SNAP!
Message-ID:  <199504061324.UAA10720@gw.itfs.nsk.su>

next in thread | raw e-mail | index | archive | help
>From: Bruce Evans <bde@zeta.org.au>

>>    The first loop prints out a "0." instead of a "0".  This anomaly
>>also caused gcc to fail when compiling the extension modules (because
>>perl was generating array subscripts with 0. instead of 0).  Anyone
>>have a gcc 2.6.2/pre-950322 machine to test this?

>The C printf function used to print "0" in some cases when it should
>have printed "0.".  Apparently perl's tests expect the broken behaviour.

	This is very strange but on FreeBSD-1.1.5.1, FreeBSD-2.0-950210-SNAP,
SunOS 4.1.3 and ISC 3.0 my test program prints:

1
0

and only on FreeBSD-current I see:

1
0.

(Test program :

main()
{
char b[256];
sprintf(b,"%g",1.0);
printf("%s\n",b);
sprintf(b,"%g",0.0);
printf("%s\n",b);
}

		N.Dudorov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504061324.UAA10720>