# HG changeset patch # User Eric Blake # Date 1306280019 21600 # Node ID 3fe3b9fc9c12d668cb0cfc3fab3ddd42aa9b7e44 # Parent a29ad2af0c293764cceed799819c542216862c16 docs: document recently fixed glibc printf bug Document it as a known bug, but one where we don't provide a workaround since programmers are unlikely to hit it in practice. * doc/posix-functions/fprintf.texi (fprintf): Document it. * doc/posix-functions/printf.texi (printf): Likewise. * doc/posix-functions/vfprintf.texi (vfprintf): Likewise. * doc/posix-functions/vprintf.texi (vprintf): Likewise. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-24 Eric Blake + docs: document recently fixed glibc printf bug + * doc/posix-functions/fprintf.texi (fprintf): Document it. + * doc/posix-functions/printf.texi (printf): Likewise. + * doc/posix-functions/vfprintf.texi (vfprintf): Likewise. + * doc/posix-functions/vprintf.texi (vprintf): Likewise. + closein-tests: convert to init.sh * modules/closein-tests (Files): Add init.sh * tests/test-closein.sh Use it. diff --git a/doc/posix-functions/fprintf.texi b/doc/posix-functions/fprintf.texi --- a/doc/posix-functions/fprintf.texi +++ b/doc/posix-functions/fprintf.texi @@ -83,4 +83,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize diff --git a/doc/posix-functions/printf.texi b/doc/posix-functions/printf.texi --- a/doc/posix-functions/printf.texi +++ b/doc/posix-functions/printf.texi @@ -83,4 +83,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize diff --git a/doc/posix-functions/vfprintf.texi b/doc/posix-functions/vfprintf.texi --- a/doc/posix-functions/vfprintf.texi +++ b/doc/posix-functions/vfprintf.texi @@ -83,4 +83,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize diff --git a/doc/posix-functions/vprintf.texi b/doc/posix-functions/vprintf.texi --- a/doc/posix-functions/vprintf.texi +++ b/doc/posix-functions/vprintf.texi @@ -83,4 +83,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +Attempting to write to a read-only stream fails with @code{EOF} but +does not set the error flag for @code{ferror} on some platforms: +glibc 2.13. @end itemize