From 49855b3b49b035f86a6f31d7cf46934baeba5afd Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 21 Mar 2021 12:30:33 +0100 Subject: [PATCH] ftell: Document bug in macOS >= 10.15. * doc/posix-functions/ftell.texi: Mention the macOS bug. --- ChangeLog | 5 +++++ doc/posix-functions/ftell.texi | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 77bf17513b..72ff47c8f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-03-21 Bruno Haible + + ftell: Document bug in macOS >= 10.15. + * doc/posix-functions/ftell.texi: Mention the macOS bug. + 2021-03-20 Bruno Haible ftello: Work around bug in macOS >= 10.15. diff --git a/doc/posix-functions/ftell.texi b/doc/posix-functions/ftell.texi index 21ebc00c76..3d405bf2a1 100644 --- a/doc/posix-functions/ftell.texi +++ b/doc/posix-functions/ftell.texi @@ -15,6 +15,11 @@ mingw, MSVC 14. This function produces incorrect results after @code{putc} that followed a @code{getc} call that reached EOF on some platforms: Solaris 11 2010-11. +@item +This function, when invoked after @code{ungetc}, throws away the @code{ungetc} +buffer, changes the stream's file position, and returns the wrong position on +some platforms: +macOS 10.15 and newer. @end itemize Portability problems not fixed by Gnulib: -- 2.39.5