www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F513D11.2080203@t-online.de> |
Date: | Fri, 02 Mar 2012 22:35:13 +0100 |
From: | Christian Franke <Christian DOT Franke AT t-online DOT de> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Firefox/10.0.2 SeaMonkey/2.7.2 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Setting TZ may break time() in non-Cygwin programs |
References: | <4F4FD8C6 DOT 5000807 AT t-online DOT de> <20120302091317 DOT GD14404 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20120302091317.GD14404@calimero.vinschen.de> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Corinna Vinschen wrote: > 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? Of course, after tracking down the problem to the new TZ it is now easy to unset it :-) No problem in scripts, but inconvenient and error prone for interactive use. > But, as usual, PTC. OK, ... > > Simple: Unset TZ for Win32 programs run from Cygwin. > > More flexible: Set (unset) TZ=CYGWIN_WINENV_TZ if this variable is set > (to empty). Otherwise keep TZ as is. > would a patch for any of the above have a chance to get accepted? Christian -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |