Hash :
bbf0d3fd
Author :
Date :
2023-04-01T14:51:22
vasnwprintf-posix: Fix behaviour in the C locale. * lib/vasnprintf.c (VASNPRINTF): If NEED_WPRINTF_DIRECTIVE_C is set, implement the 'c' directive here. * m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Invoke gl_MBRTOWC_C_LOCALE. If mbrtowc is buggy in the C locale, define NEED_WPRINTF_DIRECTIVE_C. * modules/vasnwprintf (Files): Add m4/mbrtowc.m4. * tests/test-vasnwprintf-posix.c (test_function): Add tests of %s and %c in the C locale. * doc/posix-functions/fwprintf.texi: Mention the C locale behaviour bug. * doc/posix-functions/swprintf.texi: Likewise. * doc/posix-functions/vfwprintf.texi: Likewise. * doc/posix-functions/vswprintf.texi: Likewise. * doc/posix-functions/vwprintf.texi: Likewise. * doc/posix-functions/wprintf.texi: Likewise.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
Description:
vswprintf with automatic memory allocation and bounded output size.
Files:
lib/float+.h
lib/printf-args.h
lib/printf-args.c
lib/wprintf-parse.h
lib/wprintf-parse.c
lib/printf-parse.c
lib/vasnwprintf.h
lib/vasnwprintf.c
lib/vasnprintf.c
lib/asnwprintf.c
m4/wchar_t.m4
m4/wint_t.m4
m4/intmax_t.m4
m4/stdint_h.m4
m4/inttypes_h.m4
m4/vasnprintf.m4
m4/printf.m4
m4/mbrtowc.m4
m4/math_h.m4
m4/exponentd.m4
m4/musl.m4
Depends-on:
stdio
alloca-opt
attribute
float
free-posix
limits-h
stdint
xsize
errno
memchr
assert-h
wchar
mbrtowc
wmemcpy
wmemset
configure.ac:
AC_REQUIRE([AC_C_RESTRICT])
gl_FUNC_VASNWPRINTF
Makefile.am:
lib_SOURCES += wprintf-parse.c vasnwprintf.c
lib_SOURCES += asnwprintf.c
Include:
"vasnwprintf.h"
Link:
$(MBRTOWC_LIB)
License:
LGPLv2+
Maintainer:
all