Hash :
82edd0e6
Author :
Date :
2017-11-28T14:30:25
Port better to CentOS 5 Problems reported by Tom G. Christensen in: https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html * doc/glibc-functions/strverscmp.texi (strverscmp): Document strverscmp bug with glibc 2.9 and earlier. * doc/posix-functions/tzset.texi (tzset): Document that TZ with angle brackets is POSIX-2001 and later. * tests/test-nstrftime.c: Include unistd.h. (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro. (TZ): Use it to skip tests with angle brackets in TZ, for older systems.
@node tzset
@section @code{tzset}
@findex tzset
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/tzset.html}
Gnulib module: tzset
Portability problems fixed by Gnulib:
@itemize
@item
On native Windows platforms (mingw, MSVC), this function works incorrectly
when the environment variable @code{TZ} has been set by Cygwin.
@item
This function clobbers the buffer used by the localtime function on some
platforms:
Solaris 2.6.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
Native Windows platforms (mingw, MSVC) support only a subset of
POSIX-specified values for the @env{TZ} environment variable,
consisting of a time zone abbreviation containing exactly three ASCII
letters with no daylight saving time or angle brackets, and with no
support for @code{tz} database settings like
@code{TZ='America/New_York'}. Even this subset does not work on
applications built via the Universal Windows Platform, as it does not
make environment variables like @env{TZ} available to applications.
@item
Older POSIX platforms do not support angle brackets in @env{TZ} values,
as this feature was added in IEEE Std 1003.1-2001.
@end itemize