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

2017-09-22 Thread Paul Eggert
On 09/22/2017 02:57 AM, Bruno Haible wrote: 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? All of t

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

2017-09-22 Thread Bruno Haible
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 nec

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

2017-09-22 Thread Mathieu Lirzin
Hello Paul, Paul Eggert writes: > 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

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

2017-09-21 Thread Paul Eggert
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 plat

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

2017-09-17 Thread Eric Dorland
This is a good change but it's not enough unfortunately to make it reproducible. mdate-sh also needs to support SOURCE_DATE_EPOCH. I'm working on a patch for that. * Mathieu Lirzin (m...@gnu.org) wrote: > Hello, > > Reiner Herrmann writes: > > > mdate-sh pretty-prints the modification time of

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

2017-09-17 Thread Mathieu Lirzin
Hello Eric, Eric Dorland writes: > This is a good change but it's not enough unfortunately to make it > reproducible. mdate-sh also needs to support SOURCE_DATE_EPOCH. I'm > working on a patch for that. Thanks for working on that. -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E1

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

2017-09-16 Thread Mattia Rizzolo
On Fri, Sep 15, 2017 at 12:34:54PM +0200, Mathieu Lirzin wrote: > Applied with slight modifications in commit > 7c25c996d1c7c212a5981aa0e9c4434b6f33f7b8 Great, thank you! -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. mo

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

2017-09-15 Thread Mathieu Lirzin
Hello, Reiner Herrmann writes: > mdate-sh pretty-prints the modification time of a file. > But it's output can vary depending on the timezone of > the caller. Someone in timezone GMT-12 will get a different > result (day) than someone in timezone GMT+12. > > As this output is also used to create