Abe Timmerman wrote:
Op een mooie zomerdag (Thursday 28 July 2005 12:31),schreef  Dominic Dunlop:

On 2005–07–28, at 11:07, H.Merijn Brand wrote:

%.0f<      >-0.1<        >-0<  >C library bug: no minus on VMS,
HP-UX<

Which isn't true anymore anyway. I've just tried on SuSE 9.2, SuSE
9.3,
AIX 4.3.3, AIX 5.2.0, HP-UX 11i, and HP-UX 11.00, and all print
"-0" on
the example below. Only HP-UX 10.20 still prints "0"

OK. Can somebody say what the situation is on (particular versions
of) VMS? -- copied to John E Malmberg in the hope of help.


$This is perl, v5.8.6 built for VMS_AXP
$ uname -a
OpenVMS SPE180 0 V8.2 AlphaServer_DS20_500_MHz Alpha
$ perl -we "printf qq/%0.f\n/, -0.1"
0

This is perl, v5.8.6 built for VMS_VAX
TIMMERMAN:FAFNER$ uname -a
OpenVMS FAFNER 0 V7.2 VAX_7000-720 VAX
$ perl -we "printf qq/%0.f\n/, -0.1"
0

I will pass this on to the experts in this area. It may be a case of setting the proper build options.

Some bug-fixes that visibly change behavior are not enabled by default so that they do not break existing programs that depend on the incorrect behavior.

-John
[EMAIL PROTECTED]
Personal Opinion Only

Reply via email to