summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-07 23:54:24 +0200
committerBruno Haible <bruno@clisp.org>2023-04-07 23:54:24 +0200
commit0a0fb288072ce33e602886f232493731b86a2574 (patch)
tree5e7a839f7387c92db8f5a66803d9cf4054f3ee88 /doc
parentc33d7e3b40042440e4295f46adff1d94051c74f7 (diff)
downloadgnulib-0a0fb288072ce33e602886f232493731b86a2574.tar.gz
vasnwprintf-posix: Work around %La bug in glibc 2.15 and Haiku.
* m4/printf.m4 (gl_SWPRINTF_DIRECTIVE_LA): New macro. * m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Invoke gl_SWPRINTF_DIRECTIVE_LA and define NEED_WPRINTF_DIRECTIVE_LA accordingly. * lib/vasnprintf.c: When compiling vasnwprintf, if NEED_WPRINTF_DIRECTIVE_LA, handle the %La and %LA directives ourselves. * doc/posix-functions/swprintf.texi: Mention the %La bug.
Diffstat (limited to 'doc')
-rw-r--r--doc/posix-functions/swprintf.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/posix-functions/swprintf.texi b/doc/posix-functions/swprintf.texi
index cd20d0e702..fe36bc215a 100644
--- a/doc/posix-functions/swprintf.texi
+++ b/doc/posix-functions/swprintf.texi
@@ -36,6 +36,12 @@ accommodate all Unicode characters.
@item
On Windows, this function does not take a buffer size as second argument.
@item
+This function produces wrong values for the @samp{La} directive
+on some platforms:
+glibc 2.15,
+@c https://dev.haiku-os.org/ticket/18353
+Haiku.
+@item
This function does not support size specifiers as in C23 (@code{w8},
@code{w16}, @code{w32}, @code{w64}, @code{wf8}, @code{wf16}, @code{wf32},
@code{wf64}) on some platforms: