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
-
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
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" : ".*
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
-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"
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
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 -
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.