From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23043 invoked by alias); 9 Jun 2011 19:27:36 -0000 Received: (qmail 22944 invoked by uid 22791); 9 Jun 2011 19:27:36 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-vw0-f43.google.com (HELO mail-vw0-f43.google.com) (209.85.212.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jun 2011 19:27:15 +0000 Received: by vws10 with SMTP id 10so1892307vws.2 for ; Thu, 09 Jun 2011 12:27:15 -0700 (PDT) Received: by 10.52.66.206 with SMTP id h14mr1673968vdt.40.1307647635088; Thu, 09 Jun 2011 12:27:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.113.6 with HTTP; Thu, 9 Jun 2011 12:26:55 -0700 (PDT) In-Reply-To: <4DF10C13.3040208@cwilson.fastmail.fm> References: <20110609094631.56364lzi64m7t4d3@messagerie.si.c-s.fr> <4DF10C13.3040208@cwilson.fastmail.fm> From: Edward McGuire Date: Thu, 09 Jun 2011 19:27:00 -0000 Message-ID: Subject: Re: cygcheck's understanding of TZ To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-06/txt/msg00094.txt.bz2 On Thu, Jun 9, 2011 at 13:08, Charles Wilson wrote: > cygcheck.exe is not a cygwin program. =C2=A0It is a native windows > program, and thus either (a) uses Windows support for time zone > data, not cygwin, or (b) has some special code to mimic cygwin's > tz handling, which may not be up-to-par. =C2=A0You'll have to check the > source code to be sure, but I rather doubt (b). cygcheck.cc: [snip] #include [snip] time_t now; [snip] printf ("\nCygwin Configuration Diagnostics\n"); time (&now); printf ("Current System Time: %s\n", ctime (&now)); It's using C RTL calls. And cygcheck(1) is linked with msvcrt.dll, not GNU, and therefore cygcheck(1) has Microsoft C RTL behavior. Microsoft C RTL does not support the pathname syntax extension; that's a GNU thing. http://support.microsoft.com/kb/155293/a Based on the article above, it seems the MS CRTL returns times that are off by 1 hour if you set TZ and also have daylight saving time enabled in the Date/Time control panel. That is almost certainly why cygcheck(1) is returning GMT +1 hour instead of GMT when you pass it an invalid TZ. Cheers, MetaEd -- 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