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

sprintf and SFIO

Thread Next
Chris Nandor
April 27, 2001 08:37
sprintf and SFIO
Message ID:
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
>%.0f<      >-0.6<        >-1<             >Known to fail with sfio and
>%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:


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            
Open Source Development Network

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About