vasnprintf: Support I flag on glibc systems.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Nov 2010 17:50:19 +0000 (18:50 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Nov 2010 17:50:19 +0000 (18:50 +0100)
commitf03d479e8f5f234789cde2fd841d16fd4eeda247
treebc5def52cba0d6f2d509da82acaa30c4add27aeb
parent8e20755cd51476b841e55faf7c21a57d8884d130
vasnprintf: Support I flag on glibc systems.

* lib/printf-parse.h (FLAG_LOCALIZED): New macro.
* lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
* lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
snprintf function.
* tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
glibc systems.
* tests/test-vasnprintf-posix3.c: New file.
* modules/vasnprintf-posix-tests (Files): Add it.
(TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
ChangeLog
lib/printf-parse.c
lib/printf-parse.h
lib/vasnprintf.c
modules/vasnprintf-posix-tests
tests/test-vasnprintf-posix.c
tests/test-vasnprintf-posix3.c [new file with mode: 0644]