From 0a0fb288072ce33e602886f232493731b86a2574 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 7 Apr 2023 23:54:24 +0200 Subject: 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. --- doc/posix-functions/swprintf.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') 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: -- cgit v1.2.1