]> Savannah Git Hosting - gnulib.git/commitdiff
Document the problem with the Cygwin environment variable TZ.
authorBruno Haible <bruno@clisp.org>
Sun, 30 Apr 2017 09:38:25 +0000 (11:38 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Apr 2017 17:26:36 +0000 (19:26 +0200)
* 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.

ChangeLog
doc/pastposix-functions/ftime.texi
doc/posix-functions/ctime.texi
doc/posix-functions/localtime.texi
doc/posix-functions/mktime.texi
doc/posix-functions/strftime.texi
doc/posix-functions/tzset.texi
doc/posix-functions/wcsftime.texi

index e7e29956cda7005a2c74fe7e19bfb2b26dc950f2..818d6e242226b2f75ed9073240768ca2d3471aee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2017-04-30  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
 2017-04-30  Bruno Haible  <bruno@clisp.org>
 
        utime-tests: New module.
index 0fcaed1ecc24661a9ff065cf8c271782aceba7a2..582a088163ce3cacefc33ff2fe47c15f05749c68 100644 (file)
@@ -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.
index f5a7c276264ce7d3404f4fd26b01b8748e4a34a3..e54a7b5b8edd5dbee68d4e48bd9bb4eed174e60d 100644 (file)
@@ -13,6 +13,9 @@ Portability problems fixed by Gnulib:
 Portability problems not 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 may overflow its internal buffer if an invalid year is passed.
 @item
 The @code{ctime} function need not be reentrant, and consequently is
index 49a6dddc0f5dcd42fb09523a20b370f973c5090e..1d6acdba8f4292bbb700b9df91e7aa0535977d1e 100644 (file)
@@ -12,7 +12,11 @@ Portability problems fixed by Gnulib:
 
 Portability problems not fixed by Gnulib:
 @itemize
-@item On some platforms, this function returns nonsense values for
+@item
+On native Windows platforms (mingw, MSVC), this function works incorrectly
+when the environment variable @code{TZ} has been set by Cygwin.
+@item
+On some platforms, this function returns nonsense values for
 unsupported arguments (like @math{2^56}), rather than failing:
 FreeBSD 10.
 @end itemize
index 97569480ce1699c653be26efff63d46f1d444f5d..ffb7b79e117fd4d317c8ccc52fa560a84ad91446 100644 (file)
@@ -16,4 +16,7 @@ Portability problems fixed by Gnulib:
 
 Portability problems not 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.
 @end itemize
index e58e1ef494f55391e3f460d1892da0f7b233787d..d371818e2e0c4978140f69ae06191aa2114f00ca 100644 (file)
@@ -13,6 +13,9 @@ Portability problems fixed by Gnulib:
 Portability problems not 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
 The Windows C runtime library (which is used by MinGW) does not
 support the %e specifier (and possibly the other more recent SUS
 specifiers too, i.e., %C, %D, %h, %n, %r, %R, %t, and %T).
index 35fc509d764bbac0c4374936fdd6da15e5f47a57..30b147cc3cd44e94e935b73cb3ea178492e8cb8e 100644 (file)
@@ -16,4 +16,7 @@ Solaris 2.6.
 
 Portability problems not 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.
 @end itemize
index 0faa2118cf5a8befb3c3f883ba66af4d3f4f1d32..8ab82c20a1d0a23fee28dbb7280422088f1fd7c2 100644 (file)
@@ -16,6 +16,9 @@ Portability problems not fixed by Gnulib:
 This function is missing on some platforms:
 OpenBSD 3.8, Minix 3.1.8, IRIX 5.3, Solaris 2.5.1, Cygwin 1.5.x, BeOS.
 @item
+On native Windows platforms (mingw, MSVC), this function works incorrectly
+when the environment variable @code{TZ} has been set by Cygwin.
+@item
 On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot
 accommodate all Unicode characters.
 @end itemize