Collin Funk wrote:
> On OpenBSD 7.8, gl_cv_func_printf_enomem is defined to "no". This case
> wasn't documented previously, but we can see the cause using this diff:
> 
>     diff --git a/m4/printf.m4 b/m4/printf.m4
>     index 0de493b690..1221de172f 100644
>     --- a/m4/printf.m4
>     +++ b/m4/printf.m4
>     @@ -1547,6 +1547,8 @@ AC_DEFUN([gl_PRINTF_ENOMEM]
>          return 77;
>      #endif
>        ret = printf ("%.5000000f", 1.0);
>     +  printf ("%s\n", strerror (errno));
>     +  printf ("%d\n", ret);
>        return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
>      }
>                ]])])
> 
> It reveals that printf returns zero despite errno being set to ENOMEM
> and nothing being printed.
> 
> Our autoconf tests already caught this, but here is a patch documenting
> it.

Thanks!




Reply via email to