]> Savannah Git Hosting - gnulib.git/commitdiff
Port Universal Time settings to strict POSIX
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jan 2016 17:29:40 +0000 (09:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Jan 2016 17:30:15 +0000 (09:30 -0800)
* build-aux/announce-gen, build-aux/bootstrap:
* build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
* build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
* build-aux/gnupload, build-aux/mkinstalldirs:
* build-aux/move-if-change, build-aux/prefix-gnulib-mk:
* build-aux/update-copyright, build-aux/useless-if-before-free:
* build-aux/vc-list-files, tests/test-strftime.c:
Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
but POSIX says the behavior of TZ="UTC" is undefined.

15 files changed:
ChangeLog
build-aux/announce-gen
build-aux/bootstrap
build-aux/do-release-commit-and-tag
build-aux/git-version-gen
build-aux/gitlog-to-changelog
build-aux/gnu-web-doc-update
build-aux/gnupload
build-aux/mkinstalldirs
build-aux/move-if-change
build-aux/prefix-gnulib-mk
build-aux/update-copyright
build-aux/useless-if-before-free
build-aux/vc-list-files
tests/test-strftime.c

index 2c60bc9c1bc7c75406e5e3564ffe884cde3582b2..7b18ce564691c1df7eea5227011191acc09296d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port Universal Time settings to strict POSIX
+       * build-aux/announce-gen, build-aux/bootstrap:
+       * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
+       * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
+       * build-aux/gnupload, build-aux/mkinstalldirs:
+       * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
+       * build-aux/update-copyright, build-aux/useless-if-before-free:
+       * build-aux/vc-list-files, tests/test-strftime.c:
+       Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
+       but POSIX says the behavior of TZ="UTC" is undefined.
+
 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        msvc-inval: fix problem with unset shell var
index 003a208ae240e118d854f1adef86d8d71225c6b2..9bd56e6376d5e41175e129d458c5650f8610809c 100755 (executable)
@@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
     if 0;
 # Generate a release announcement message.
 
-my $VERSION = '2013-07-09 06:39'; # UTC
+my $VERSION = '2016-01-11 22:03'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -552,6 +552,6 @@ EOF
 ## eval: (add-hook 'write-file-hooks 'time-stamp)
 ## time-stamp-start: "my $VERSION = '"
 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
-## time-stamp-time-zone: "UTC"
+## time-stamp-time-zone: "UTC0"
 ## time-stamp-end: "'; # UTC"
 ## End:
index 294c0bce447935103ab493ca7c3ee2d30a48d44a..804f5c46854a60afe7c11df843b9ce1447841830 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2014-12-08.12; # UTC
+scriptversion=2016-01-11.22; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -1021,6 +1021,6 @@ echo "$0: done.  Now you can run './configure'."
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
index c2b9cf019ca1d8d9da8a2b1eecc8bd40744c93b1..7441dbdb7c9d94b46eb50435dcb206e11a06d159 100755 (executable)
@@ -3,7 +3,7 @@
 # controlled .prev-version file, automate the procedure by which we record
 # the date, release-type and version string in the NEWS file.  That commit
 # will serve to identify the release, so apply a signed tag to it as well.
-VERSION=2012-08-01.09 # UTC
+VERSION=2016-01-11.22 # UTC
 
 # Note: this is a bash script (could be zsh or dash)
 
@@ -174,6 +174,6 @@ git tag -s -m "$pkg $ver" v$ver HEAD || die 'git tag failed'
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "VERSION="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: " # UTC"
 # End:
index 183602f5a7e4b00d0864da1fef4e0d88584bb84e..6c56147d2cf3d4b4af192537f34847ea219d5748 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Print a version string.
-scriptversion=2014-12-02.19; # UTC
+scriptversion=2016-01-11.22; # UTC
 
 # Copyright (C) 2007-2016 Free Software Foundation, Inc.
 #
@@ -221,6 +221,6 @@ printf %s "$v"
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
index e25d48ec3a229000d5d69266dcddbc4aea4b11d7..a42650478a2ecb5e1fb29b79f695aca0e03956f5 100755 (executable)
@@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
     if 0;
 # Convert git log output to ChangeLog format.
 
-my $VERSION = '2015-06-11 01:03'; # UTC
+my $VERSION = '2016-01-11 22:04'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -487,6 +487,6 @@ sub git_dir_option($)
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "my $VERSION = '"
 # time-stamp-format: "%:y-%02m-%02d %02H:%02M"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "'; # UTC"
 # End:
index ab69941fb5eb093aeabe941c2736c2081410c3b4..1684f5e5b5804e71ac889a3c9c9babde5f644789 100755 (executable)
@@ -2,7 +2,7 @@
 # Run this after each non-alpha release, to update the web documentation at
 # http://www.gnu.org/software/$pkg/manual/
 
-VERSION=2015-06-16.06; # UTC
+VERSION=2016-01-11.22; # UTC
 
 # Copyright (C) 2009-2016 Free Software Foundation, Inc.
 
@@ -204,6 +204,6 @@ $RSYNC -avP "$builddir"/doc/manual/ $tmp/$pkg/manual
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "VERSION="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
index 907d7848021752375b9299a048e11fcf3b2c4b19..5260badae51214bc43dd1e34b05a76990f853270 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Sign files and upload them.
 
-scriptversion=2013-03-19.17; # UTC
+scriptversion=2016-01-11.22; # UTC
 
 # Copyright (C) 2004-2016 Free Software Foundation, Inc.
 #
@@ -435,6 +435,6 @@ exit 0
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
index 55d537f872ccde377e96a1f34e37624a06834b26..a31ce6d0294f39b0bc0eddee6d3d46c23ff53a01 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # mkinstalldirs --- make directory hierarchy
 
-scriptversion=2009-04-28.21; # UTC
+scriptversion=2016-01-11.22; # UTC
 
 # Original author: Noah Friedman <friedman@prep.ai.mit.edu>
 # Created: 1993-05-16
@@ -157,6 +157,6 @@ exit $errstatus
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
index cd744a92f366979f61bcb43c53f7c22a5493e6c0..e3fe71d18f59cb8edc36c8f31641bdda677ab085 100755 (executable)
@@ -2,7 +2,7 @@
 # Like mv $1 $2, but if the files are the same, just delete $1.
 # Status is zero if successful, nonzero otherwise.
 
-VERSION='2012-01-06 07:23'; # UTC
+VERSION='2016-01-11 22:04'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -78,6 +78,6 @@ fi
 ## eval: (add-hook 'write-file-hooks 'time-stamp)
 ## time-stamp-start: "VERSION='"
 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
-## time-stamp-time-zone: "UTC"
+## time-stamp-time-zone: "UTC0"
 ## time-stamp-end: "'; # UTC"
 ## End:
index 0ac81a88f8bb3f8636697209c894d83025253f11..e6b91bf5fd4cd277d86b2d183630ab219672f14d 100755 (executable)
@@ -233,6 +233,6 @@ sub process ($)
 ## eval: (add-hook 'write-file-hooks 'time-stamp)
 ## time-stamp-start: "my $VERSION = '"
 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
-## time-stamp-time-zone: "UTC"
+## time-stamp-time-zone: "UTC0"
 ## time-stamp-end: "'; # UTC"
 ## End:
index 40f7b9817bcda4659356b9d6ff02660ec9def035..8c6ee1fdd3cca51efd94c1d2518393e6fc79eeab 100755 (executable)
@@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" ${1+"$@"}'
     if 0;
 # Update an FSF copyright year list to include the current year.
 
-my $VERSION = '2015-01-15.20:53'; # UTC
+my $VERSION = '2016-01-11.22:04'; # UTC
 
 # Copyright (C) 2009-2016 Free Software Foundation, Inc.
 #
@@ -269,6 +269,6 @@ else
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "my $VERSION = '"
 # time-stamp-format: "%:y-%02m-%02d.%02H:%02M"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "'; # UTC"
 # End:
index 7f7777938212f06e4ac063e7356e46fc6f1c7c51..80412c5b5b4b16ba48ea9d0df27d8fa6d1e39c90 100755 (executable)
@@ -4,7 +4,7 @@ eval '(exit $?0)' && eval 'exec perl -wST "$0" ${1+"$@"}'
 # Detect instances of "if (p) free (p);".
 # Likewise "if (p != 0)", "if (0 != p)", or with NULL; and with braces.
 
-my $VERSION = '2012-01-06 07:23'; # UTC
+my $VERSION = '2016-01-11 22:04'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -202,6 +202,6 @@ EOF
 ## eval: (add-hook 'write-file-hooks 'time-stamp)
 ## time-stamp-start: "my $VERSION = '"
 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
-## time-stamp-time-zone: "UTC"
+## time-stamp-time-zone: "UTC0"
 ## time-stamp-end: "'; # UTC"
 ## End:
index 8f9b7cc69b07954af9f7f49c1b5492d34928d3ce..c5c420a4bb27c6ac62114ddb0a5f86038cd905e0 100755 (executable)
@@ -2,7 +2,7 @@
 # List version-controlled file names.
 
 # Print a version string.
-scriptversion=2011-05-16.22; # UTC
+scriptversion=2016-01-11.22; # UTC
 
 # Copyright (C) 2006-2016 Free Software Foundation, Inc.
 
@@ -108,6 +108,6 @@ done
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
index 2e6340076d7c17cda7d14154d90f77bcb1f57957..39494e6daa2eaf1dc8120d2643ff3c9fb100192a 100644 (file)
@@ -165,7 +165,7 @@ tzalloc_test (void)
           tza->tz = tz;
         }
 
-      setting = tza->setting ? tza->setting : "UTC";
+      setting = tza->setting ? tza->setting : "UTC0";
 
       if (!localtime_rz (tz, &LT[i].t, &tm))
         {