delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/02/04:14:12

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 2 Mar 2012 10:13:17 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Setting TZ may break time() in non-Cygwin programs
Message-ID: <20120302091317.GD14404@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4F4FD8C6 DOT 5000807 AT t-online DOT de>
MIME-Version: 1.0
In-Reply-To: <4F4FD8C6.5000807@t-online.de>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019