From 28b1742cfbf6e28ebc439357a70cf1cb986e6622 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 24 Jun 2024 20:04:54 +0200 Subject: [PATCH] doc: Update info about *printf. * doc/*-functions/*printf.texi: Update info regarding %B directive. --- ChangeLog | 5 +++++ doc/glibc-functions/asprintf.texi | 2 +- doc/glibc-functions/obstack_printf.texi | 2 +- doc/glibc-functions/obstack_vprintf.texi | 2 +- doc/glibc-functions/vasprintf.texi | 2 +- doc/posix-functions/dprintf.texi | 2 +- doc/posix-functions/fprintf.texi | 2 +- doc/posix-functions/fwprintf.texi | 3 +++ doc/posix-functions/printf.texi | 2 +- doc/posix-functions/snprintf.texi | 2 +- doc/posix-functions/sprintf.texi | 2 +- doc/posix-functions/swprintf.texi | 3 +++ doc/posix-functions/vdprintf.texi | 2 +- doc/posix-functions/vfprintf.texi | 2 +- doc/posix-functions/vfwprintf.texi | 3 +++ doc/posix-functions/vprintf.texi | 2 +- doc/posix-functions/vsnprintf.texi | 2 +- doc/posix-functions/vsprintf.texi | 2 +- doc/posix-functions/vswprintf.texi | 3 +++ doc/posix-functions/vwprintf.texi | 3 +++ doc/posix-functions/wprintf.texi | 3 +++ 21 files changed, 37 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index c76a5ec301..6709a8c440 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-06-24 Bruno Haible + + doc: Update info about *printf. + * doc/*-functions/*printf.texi: Update info regarding %B directive. + 2024-06-24 Bruno Haible doc: Update info about *printf. diff --git a/doc/glibc-functions/asprintf.texi b/doc/glibc-functions/asprintf.texi index 751d211c47..a16154d2d5 100644 --- a/doc/glibc-functions/asprintf.texi +++ b/doc/glibc-functions/asprintf.texi @@ -87,7 +87,7 @@ Portability problems fixed by Gnulib module @code{vasprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems not fixed by Gnulib: diff --git a/doc/glibc-functions/obstack_printf.texi b/doc/glibc-functions/obstack_printf.texi index 4de8b814ac..01148e045c 100644 --- a/doc/glibc-functions/obstack_printf.texi +++ b/doc/glibc-functions/obstack_printf.texi @@ -90,7 +90,7 @@ Portability problems fixed by Gnulib module @code{obstack-printf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, macOS 14, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{obstack-printf-posix} or @code{obstack-printf-gnu} diff --git a/doc/glibc-functions/obstack_vprintf.texi b/doc/glibc-functions/obstack_vprintf.texi index 933fb06b04..1917c7fe0f 100644 --- a/doc/glibc-functions/obstack_vprintf.texi +++ b/doc/glibc-functions/obstack_vprintf.texi @@ -90,7 +90,7 @@ Portability problems fixed by Gnulib module @code{obstack-printf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, macOS 14, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{obstack-printf-posix} or @code{obstack-printf-gnu} diff --git a/doc/glibc-functions/vasprintf.texi b/doc/glibc-functions/vasprintf.texi index eb011ffb50..32f448195e 100644 --- a/doc/glibc-functions/vasprintf.texi +++ b/doc/glibc-functions/vasprintf.texi @@ -87,7 +87,7 @@ Portability problems fixed by Gnulib module @code{vasprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems not fixed by Gnulib: diff --git a/doc/posix-functions/dprintf.texi b/doc/posix-functions/dprintf.texi index 21459c2fb8..e0d5d95bcc 100644 --- a/doc/posix-functions/dprintf.texi +++ b/doc/posix-functions/dprintf.texi @@ -64,7 +64,7 @@ Portability problems fixed by Gnulib module @code{dprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{dprintf-posix} or @code{dprintf-gnu} diff --git a/doc/posix-functions/fprintf.texi b/doc/posix-functions/fprintf.texi index 6a19891e68..42026dff97 100644 --- a/doc/posix-functions/fprintf.texi +++ b/doc/posix-functions/fprintf.texi @@ -87,7 +87,7 @@ Portability problems fixed by Gnulib module @code{fprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{fprintf-posix} or @code{fprintf-gnu} diff --git a/doc/posix-functions/fwprintf.texi b/doc/posix-functions/fwprintf.texi index 4be29ad317..da458e48b6 100644 --- a/doc/posix-functions/fwprintf.texi +++ b/doc/posix-functions/fwprintf.texi @@ -30,6 +30,9 @@ on some platforms: glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, HP-UX 11, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC 14, Android 9.0. @item +This function does not support the @samp{B} directive on some platforms: +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. +@item printf @code{"%#.0x"} or @code{"%#.0X"} with a zero argument yields an incorrect result (non-empty) on some platforms: Mac OS X 10.6. diff --git a/doc/posix-functions/printf.texi b/doc/posix-functions/printf.texi index 3e89d538e9..47c92c95c5 100644 --- a/doc/posix-functions/printf.texi +++ b/doc/posix-functions/printf.texi @@ -87,7 +87,7 @@ Portability problems fixed by Gnulib module @code{printf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{printf-posix} or @code{printf-gnu} diff --git a/doc/posix-functions/snprintf.texi b/doc/posix-functions/snprintf.texi index b21d1d3b9f..c1ad749f6c 100644 --- a/doc/posix-functions/snprintf.texi +++ b/doc/posix-functions/snprintf.texi @@ -104,7 +104,7 @@ Portability problems fixed by Gnulib module @code{snprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{snprintf-posix} or @code{snprintf-gnu} diff --git a/doc/posix-functions/sprintf.texi b/doc/posix-functions/sprintf.texi index 689bd8fc2d..1788bf3793 100644 --- a/doc/posix-functions/sprintf.texi +++ b/doc/posix-functions/sprintf.texi @@ -90,7 +90,7 @@ Portability problems fixed by Gnulib module @code{sprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{sprintf-posix} or @code{sprintf-gnu} diff --git a/doc/posix-functions/swprintf.texi b/doc/posix-functions/swprintf.texi index b7bba9751e..b66cb42354 100644 --- a/doc/posix-functions/swprintf.texi +++ b/doc/posix-functions/swprintf.texi @@ -66,6 +66,9 @@ on some platforms: glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, HP-UX 11, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC 14, Android 9.0. @item +This function does not support the @samp{B} directive on some platforms: +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. +@item printf @code{"%#.0x"} or @code{"%#.0X"} with a zero argument yields an incorrect result (non-empty) on some platforms: Mac OS X 10.6. diff --git a/doc/posix-functions/vdprintf.texi b/doc/posix-functions/vdprintf.texi index 7199e793b7..46d32fb768 100644 --- a/doc/posix-functions/vdprintf.texi +++ b/doc/posix-functions/vdprintf.texi @@ -64,7 +64,7 @@ Portability problems fixed by Gnulib module @code{vdprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{vdprintf-posix} or @code{vdprintf-gnu} diff --git a/doc/posix-functions/vfprintf.texi b/doc/posix-functions/vfprintf.texi index 607cdf707f..4ef2e668de 100644 --- a/doc/posix-functions/vfprintf.texi +++ b/doc/posix-functions/vfprintf.texi @@ -87,7 +87,7 @@ Portability problems fixed by Gnulib module @code{vfprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{vfprintf-posix} or @code{vfprintf-gnu} diff --git a/doc/posix-functions/vfwprintf.texi b/doc/posix-functions/vfwprintf.texi index bc8c5fcfbe..e717113f7e 100644 --- a/doc/posix-functions/vfwprintf.texi +++ b/doc/posix-functions/vfwprintf.texi @@ -30,6 +30,9 @@ on some platforms: glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, HP-UX 11, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC 14, Android 9.0. @item +This function does not support the @samp{B} directive on some platforms: +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. +@item printf @code{"%#.0x"} or @code{"%#.0X"} with a zero argument yields an incorrect result (non-empty) on some platforms: Mac OS X 10.6. diff --git a/doc/posix-functions/vprintf.texi b/doc/posix-functions/vprintf.texi index 8a283c8d1e..1b2db634ac 100644 --- a/doc/posix-functions/vprintf.texi +++ b/doc/posix-functions/vprintf.texi @@ -87,7 +87,7 @@ Portability problems fixed by Gnulib module @code{vprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{vprintf-posix} or @code{vprintf-gnu} diff --git a/doc/posix-functions/vsnprintf.texi b/doc/posix-functions/vsnprintf.texi index 394661194a..5a313e9b24 100644 --- a/doc/posix-functions/vsnprintf.texi +++ b/doc/posix-functions/vsnprintf.texi @@ -102,7 +102,7 @@ Portability problems fixed by Gnulib module @code{vsnprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{vsnprintf-posix} or @code{vsnprintf-gnu} diff --git a/doc/posix-functions/vsprintf.texi b/doc/posix-functions/vsprintf.texi index a9131ceaff..78e1557d34 100644 --- a/doc/posix-functions/vsprintf.texi +++ b/doc/posix-functions/vsprintf.texi @@ -90,7 +90,7 @@ Portability problems fixed by Gnulib module @code{vsprintf-gnu}: @itemize @item This function does not support the @samp{B} directive on some platforms: -glibc 2.34, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.2, AIX 7.2, Solaris 11.4, and others. +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. @end itemize Portability problems fixed by either Gnulib module @code{vsprintf-posix} or @code{vsprintf-gnu} diff --git a/doc/posix-functions/vswprintf.texi b/doc/posix-functions/vswprintf.texi index fd7675bb85..dd41185007 100644 --- a/doc/posix-functions/vswprintf.texi +++ b/doc/posix-functions/vswprintf.texi @@ -32,6 +32,9 @@ on some platforms: glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, HP-UX 11, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC 14, Android 9.0. @item +This function does not support the @samp{B} directive on some platforms: +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. +@item printf @code{"%#.0x"} or @code{"%#.0X"} with a zero argument yields an incorrect result (non-empty) on some platforms: Mac OS X 10.6. diff --git a/doc/posix-functions/vwprintf.texi b/doc/posix-functions/vwprintf.texi index 565a668da1..e4bf222fc1 100644 --- a/doc/posix-functions/vwprintf.texi +++ b/doc/posix-functions/vwprintf.texi @@ -33,6 +33,9 @@ on some platforms: glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, HP-UX 11, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC 14, Android 9.0. @item +This function does not support the @samp{B} directive on some platforms: +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. +@item printf @code{"%#.0x"} or @code{"%#.0X"} with a zero argument yields an incorrect result (non-empty) on some platforms: Mac OS X 10.6. diff --git a/doc/posix-functions/wprintf.texi b/doc/posix-functions/wprintf.texi index 1cd2b728f2..db1092d712 100644 --- a/doc/posix-functions/wprintf.texi +++ b/doc/posix-functions/wprintf.texi @@ -33,6 +33,9 @@ on some platforms: glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, HP-UX 11, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC 14, Android 9.0. @item +This function does not support the @samp{B} directive on some platforms: +glibc 2.34, musl libc, macOS 14, FreeBSD 13.2, NetBSD 10.0, OpenBSD 7.5, AIX 7.3, Solaris 11.4, Cygwin 3.5.3, mingw, MSVC, Android 9.0. +@item printf @code{"%#.0x"} or @code{"%#.0X"} with a zero argument yields an incorrect result (non-empty) on some platforms: Mac OS X 10.6. -- 2.39.5