From: Paul Eggert Date: Fri, 1 Jan 2021 03:14:49 +0000 (-0800) Subject: doc: mention year-0 bugs in Solaris etc. X-Git-Tag: v1.0~3253 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=dd49d2f988df02070f586a2a017ce48bb1de8aec;p=gnulib.git doc: mention year-0 bugs in Solaris etc. * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi: * doc/posix-functions/localtime.texi: * doc/posix-functions/localtime_r.texi: * doc/posix-functions/mktime.texi: Mention year-0 bugs in localtime etc. --- diff --git a/ChangeLog b/ChangeLog index 9cb45d0d7e..e8b956828c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2020-12-31 Paul Eggert + + doc: mention year-0 bugs in Solaris etc. + * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi: + * doc/posix-functions/localtime.texi: + * doc/posix-functions/localtime_r.texi: + * doc/posix-functions/mktime.texi: + Mention year-0 bugs in localtime etc. + 2020-12-31 Bruno Haible ptsname_r: Fix test failure on Solaris. diff --git a/doc/posix-functions/gmtime.texi b/doc/posix-functions/gmtime.texi index 64d4f7df78..7590fe9108 100644 --- a/doc/posix-functions/gmtime.texi +++ b/doc/posix-functions/gmtime.texi @@ -12,4 +12,8 @@ Portability problems fixed by Gnulib: Portability problems not fixed by Gnulib: @itemize +@item +On some platforms, this function yields incorrect values for +timestamps before the year 1: +MacOS X 10.5, Solaris 11.3. @end itemize diff --git a/doc/posix-functions/gmtime_r.texi b/doc/posix-functions/gmtime_r.texi index 7e280186ed..af815af834 100644 --- a/doc/posix-functions/gmtime_r.texi +++ b/doc/posix-functions/gmtime_r.texi @@ -19,4 +19,8 @@ HP-UX 11. Portability problems not fixed by Gnulib: @itemize +@item +On some platforms, this function yields incorrect values for +timestamps before the year 1: +MacOS X 10.5, Solaris 11.3. @end itemize diff --git a/doc/posix-functions/localtime.texi b/doc/posix-functions/localtime.texi index 040102b9bc..0cad93c1b2 100644 --- a/doc/posix-functions/localtime.texi +++ b/doc/posix-functions/localtime.texi @@ -25,6 +25,10 @@ On some platforms, this function returns nonsense values for unsupported arguments (like @math{2^56}), rather than failing: FreeBSD 10. @item +On some platforms, this function yields incorrect values for +timestamps before the year 1: +MacOS X 10.5, Solaris 11.3. +@item Native Windows platforms (mingw, MSVC) support only a subset of time zones supported by GNU or specified by POSIX@. @xref{tzset}. @end itemize diff --git a/doc/posix-functions/localtime_r.texi b/doc/posix-functions/localtime_r.texi index 420bc2ee1a..fd484f8d4f 100644 --- a/doc/posix-functions/localtime_r.texi +++ b/doc/posix-functions/localtime_r.texi @@ -28,4 +28,8 @@ You can use the @code{time_rz} module to work around the problem. On some platforms, this function returns nonsense values for unsupported arguments (like @math{2^56}), rather than failing: FreeBSD 10. +@item +On some platforms, this function yields incorrect values for +timestamps before the year 1: +MacOS X 10.5, Solaris 11.3. @end itemize diff --git a/doc/posix-functions/mktime.texi b/doc/posix-functions/mktime.texi index bf4be18366..a7713b5a0e 100644 --- a/doc/posix-functions/mktime.texi +++ b/doc/posix-functions/mktime.texi @@ -20,6 +20,10 @@ when the environment variable @code{TZ} has been set by Cygwin. Portability problems not fixed by Gnulib: @itemize @item +On some platforms, this function yields incorrect values for +timestamps before the year 1: +MacOS X 10.5, Solaris 11.3. +@item Native Windows platforms (mingw, MSVC) support only a subset of time zones supported by GNU or specified by POSIX@. @xref{tzset}. @end itemize