From 6736a8833373cc6302e57c4b4ae6ff05a15a27a6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 30 Apr 2017 11:38:25 +0200 Subject: Document the problem with the Cygwin environment variable TZ. * doc/posix-functions/tzset.texi: Add note about TZ. * doc/posix-functions/ctime.texi: Likewise. * doc/posix-functions/localtime.texi: Likewise. * doc/posix-functions/mktime.texi: Likewise. * doc/posix-functions/strftime.texi: Likewise. * doc/posix-functions/wcsftime.texi: Likewise. * doc/pastposix-functions/ftime.texi: Likewise. --- doc/pastposix-functions/ftime.texi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/pastposix-functions') diff --git a/doc/pastposix-functions/ftime.texi b/doc/pastposix-functions/ftime.texi index 0fcaed1ecc..582a088163 100644 --- a/doc/pastposix-functions/ftime.texi +++ b/doc/pastposix-functions/ftime.texi @@ -16,6 +16,9 @@ Portability problems not fixed by Gnulib: This function is missing on some platforms: Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, IRIX 5.3, Solaris 2.4. @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 is marked as ``legacy'' in POSIX. Better use @code{gettimeofday} or @code{clock_gettime} instead, and use @code{ftime} only as a fallback for portability to Windows platforms. -- cgit v1.2.1