Re: bug#20314: [PATCH] Make output of mdate-sh deterministic

Bruno Haible <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <3757882.TqfQfysuO8@omega>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.