I wrote:
> On the glibc side, the bug is fixed in glibc 2.17 and newer.

The Haiku people found out more details about this bug. In particular,
it's fixed in glibc 2.16 already.


2023-04-09  Bruno Haible  <br...@clisp.org>

        vasnwprintf-posix: More details about the glibc bug.
        * doc/posix-functions/swprintf.texi: Add comment.
        * m4/printf.m4 (gl_SWPRINTF_DIRECTIVE_LA): Update cross-compilation
        guess.

diff --git a/doc/posix-functions/swprintf.texi 
b/doc/posix-functions/swprintf.texi
index fe36bc215a..649b541ed0 100644
--- a/doc/posix-functions/swprintf.texi
+++ b/doc/posix-functions/swprintf.texi
@@ -38,6 +38,7 @@
 @item
 This function produces wrong values for the @samp{La} directive
 on some platforms:
+@c https://sourceware.org/bugzilla/show_bug.cgi?id=13726
 glibc 2.15,
 @c https://dev.haiku-os.org/ticket/18353
 Haiku.
diff --git a/m4/printf.m4 b/m4/printf.m4
index f513da0c84..efb85a57af 100644
--- a/m4/printf.m4
+++ b/m4/printf.m4
@@ -1,4 +1,4 @@
-# printf.m4 serial 81
+# printf.m4 serial 82
 dnl Copyright (C) 2003, 2007-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -1988,7 +1988,7 @@ AC_DEFUN([gl_SWPRINTF_DIRECTIVE_LA]
              AC_EGREP_CPP([Unlucky], [
                #include <features.h>
                #ifdef __GNU_LIBRARY__
-                #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 17) || (__GLIBC__ > 
2)) && !defined __UCLIBC__
+                #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 16) || (__GLIBC__ > 
2)) && !defined __UCLIBC__
                  Unlucky
                 #endif
                #endif




Reply via email to