bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what shall we do with the drunken time_t ?


From: Paul Eggert
Subject: Re: what shall we do with the drunken time_t ?
Date: Tue, 25 Apr 2017 00:21:36 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Couldn't asctime be causing the problem, insted of stat, gmtime etc.? The Microsoft documentation for asctime says that it adjusts its output according to local time zone settings, a behavior that disagrees with POSIX. This could explain the symptoms you're seeing.

https://msdn.microsoft.com/en-us/library/kys1801b.aspx

Let's put it this way: Emacs ports to mingw and does not worry about gmtime returning a value disagreeing with POSIX. And Emacs does not use asctime (it uses strftime instead).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]