[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#20314: [PATCH] Make output of mdate-sh deterministic
From: |
Bruno Haible |
Subject: |
Re: bug#20314: [PATCH] Make output of mdate-sh deterministic |
Date: |
Fri, 22 Sep 2017 11:57:58 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-93-generic; KDE/5.18.0; x86_64; ; ) |
Paul Eggert wrote:
> Unfortunately that patch to Automake's mdate-sh is not portable, as TZ='UTC'
> is
> not a portable setting for the TZ environment variable. POSIX says you're
> supposed to use something like TZ='UTC0' instead. Although TZ='UTC' works
> when
> glibc is used, this is not necessarily true on other POSIX platforms.
Gnulib also supports MSVC, which interprets the TZ environment variable in its
own way [1][2]. From this doc and from POSIX [3], it looks to me that
UTC0
GMT0
GMT+0
GMT-0
would all be equivalent and portable. Can you confirm this? Or does one of
these TZ values happen to enable DST?
Bruno
[1] https://msdn.microsoft.com/en-us/library/aa273389.aspx
[2] https://msdn.microsoft.com/en-us/library/90s5c885.aspx
[3] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html