develooper Front page | perl.perl5.porters | Postings from April 2001

sprintf and SFIO

Thread Next
From:
Chris Nandor
Date:
April 27, 2001 08:37
Subject:
sprintf and SFIO
Message ID:
p05100300b70f3f8694b3@[209.192.217.51]
OK, I have noticed (and found in the p5p archives some discussion of) bad
behavior of SFIO with sprintf.

As was discovered this morning, but perhaps not popularly know, the e/f/g
formats are passed to the local sprintf for processing.  Hence, some
problems with e/f/g.  :-)

In op/sprintf.t, there are four tests that have problems for me (with
MacPerl 5.6.1a1).

>%.0f<      >0.6<         >1<              >Known to fail with sfio and
>(irix|nonstop-ux|powerux)<
>%.0f<      >-0.6<        >-1<             >Known to fail with sfio and
>(irix|nonstop-ux|powerux)<
>%012.9g<   >12345.6789<  >0012345.6789<
>%013g<      >1234567.89< >001.23457e+06<

The first two, as stated above, are known to fail with SFIO (1999).  The
other two have no such comments.

The results are as follows:

0
-0
  12345.6789
  1.23457e+06

So questions:

* Does anyone else see the problems with %g and SFIO?  I could find no
mention of them as problems elsewhere.
* Do these problems still show up in SFIO 2000?

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About