bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *printf: support the ' flag


From: Eric Blake
Subject: Re: *printf: support the ' flag
Date: Sun, 06 May 2007 14:39:03 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 5/6/2007 9:26 AM:
> This adds support for the grouping flag in the *printf functions, which is
> missing in NetBSD 3.0 and mingw.
> 
> ! dnl 6 = checking whether printf supports the grouping flag...
> ! dnl 7 = checking for snprintf...
> ! dnl 8 = checking whether snprintf truncates the result as in C99...
> ! dnl 9 = checking whether snprintf returns a byte count as in C99...
> ! dnl 10 = checking whether snprintf fully supports the 'n' directive...
> ! dnl 11 = checking whether vsnprintf respects a zero size as in C99...
>   dnl
>   dnl . = yes, # = no.
>   dnl
> ! dnl                              1  2  3  4  5  6  7  8  9 10 11
> ! dnl   Cygwin 2007                .  #  #  .  .  ?  .  .  .  .  ?
> ! dnl   Cygwin 2006                #  #  #  .  .  ?  .  .  .  .  ?

Cygwin 2006 (aka cygwin 1.5.19)      #  #  #  .  .  #  .  .  .  .  .
Cygwin 2007 (aka cygwin 1.5.24)      .  #  #  .  .  .  .  .  .  .  .
Cygwin 1.7.0 (not yet released)      .  ?  .  .  .  .  .  .  .  .  .

I'm still working on getting %a implemented in the newlib library (which
is the basis of cygwin's *printf), but have successfully gotten asnprintf
added to newlib and fixed a number of other printf bugs in cygwin (in
fact, it was my patch to newlib last year that makes cygwin 1.5.24 support
the ' flag).  Another cygwin bug that will be fixed in 1.7.0, but that
might still occur on other platforms with BSD code base:
printf("%#3.f", 0.1) used to result in " 0" instead of the correct " 0.".

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGPjzn84KuGfSFAYARAhY+AJ9VAXqtGlTx9fyDPKOKgiAbxLqIYQCfXbN9
XcSq/ZynvmX5RO3lZATB/II=
=U9Aj
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]