develooper Front page | perl.perl5.porters | Postings from January 2003

Re: [perl #20339] Possible sprintf problem in perl5.8.0

Thread Previous | Thread Next
January 17, 2003 10:35
Re: [perl #20339] Possible sprintf problem in perl5.8.0
Message ID:
On Fri, 17 Jan 2003 09:01:24 +0000, wrote:
> (Yitzchak Scott-Thoennes) wrote:
>:so I think %lf should be silently treated as %f.
>Thanks; the relevant chunk for floating point formats also drops
>a fail on '%hf'; should this also be silently allowed? I'm
>guessing not ...

Failure on hf is ok.
The following combinations must be supported per C99:

modifier                           format                               
h,hh,ll,j,z,t                      d,i,o,u,x,X,n
l                                  d,i,o,u,x,X,n,c,s,a,A,e,E,f,F,g,G
L                                  a,A,e,E,f,F,g,G

"If a length modifier appears with any conversion specifier other
than as specified above, the behavior is undefined."

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