This is the mail archive of the
mailing list for the Cygwin project.
Re: Setting TZ may break time() in non-Cygwin programs
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 2 Mar 2012 10:13:17 +0100
- Subject: Re: Setting TZ may break time() in non-Cygwin programs
- References: <4F4FD8C6.email@example.com>
- Reply-to: cygwin at cygwin dot com
On Mar 1 21:15, Christian Franke wrote:
> TZ environment variable is set by default since base-files 4.0.7.
> Unfortunately this breaks the time() calculation for all non-Cygwin
> programs run from Cygwin if Microsoft C runtime (mscrt*.dll) is
> used. MS CRT evaluates TZ but supports only a very old syntax
> subset. IIRC this is the case since VS1.x (DOS/Win16) and did not
> change since at least VS10.
I'm sorry, but I really don't care enough. If that's a problem, then
just unset TZ in your environment before calling non-Cygwin tools, no?
But, as usual, PTC.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple