Re: new module 'vasnprintf-posix'

2007-03-09 Thread Bruno Haible
Here's a small fix for internationalization. 2007-03-09 Bruno Haible <[EMAIL PROTECTED]> * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use a locale dependent decimal point, rather than always '.'. *** lib/vasnprintf.c5 Mar 2007 03:14:53 - 1.25 -

Re: new module 'vasnprintf-posix'

2007-03-08 Thread Bruno Haible
Paul Eggert wrote: > >- or the bash maintainers to make 'expr' and 'sed' shell built-ins, > > like 'test' and 'printf' are? > > I think it unlikely that either would happen; neither sounds all that > practical. Why not? 'expr' and 'sed' could ship its code in the form of shared libraries

Re: new module 'vasnprintf-posix'

2007-03-07 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Eric Blake wrote: >> > AC_CHECK_FUNCS([vasnprintf]) >> > if expr "$gl_cv_func_printf_sizes_c99" : ".*yes" > /dev/null \ >> > && expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null \ >> > && expr "$gl_cv_func_printf_directive_n" : ".*

Re: new module 'vasnprintf-posix'

2007-03-07 Thread Bruno Haible
Eric Blake wrote: > > AC_CHECK_FUNCS([vasnprintf]) > > if expr "$gl_cv_func_printf_sizes_c99" : ".*yes" > /dev/null \ > > && expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null \ > > && expr "$gl_cv_func_printf_directive_n" : ".*yes" > /dev/null \ > > && expr "$gl_cv_func

Re: new module 'vasnprintf-posix'

2007-03-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 3/4/2007 4:28 PM: > The module vasnprintf-posix defines a vasnprintf() function that supports > POSIX format strings with all frills. > > AC_CHECK_FUNCS([vasnprintf]) > if expr "$gl_cv_func_printf_sizes_c99" : ".*yes"

Re: new module 'vasnprintf-posix'

2007-03-04 Thread Bruno Haible
Portability would be easy if each platform didn't have its own quirks. It turns out that the implementations of hexadecimal float printing in glibc <= 2.4 and MacOS X 10.3 are buggy. Both produce control characters in the output in some case: glibc sometimes outputs \001 and MacOS X sometimes outpu

Re: new module 'vasnprintf-posix'

2007-03-04 Thread Bruno Haible
Addendum: This is also needed, to avoid two functions in the same name (one in libc, the other one possibly in a user-defined shared library - the overriding would not work in this situation). *** lib/vasnprintf.h14 May 2005 06:03:58 - 1.4 --- lib/vasnprintf.h4 Mar 2007 23:48:11 -

new module 'vasnprintf-posix'

2007-03-04 Thread Bruno Haible
The module vasnprintf-posix defines a vasnprintf() function that supports POSIX format strings with all frills. 2007-03-04 Bruno Haible <[EMAIL PROTECTED]> * modules/vasnprintf-posix: New file. * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h, printf-frexpl.