From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15629 invoked by alias); 9 Jun 2011 21:06:54 -0000 Received: (qmail 15621 invoked by uid 22791); 9 Jun 2011 21:06:53 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_YG,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from nm25-vm0.bullet.mail.bf1.yahoo.com (HELO nm25-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.156) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Thu, 09 Jun 2011 21:06:37 +0000 Received: from [98.139.212.149] by nm25.bullet.mail.bf1.yahoo.com with NNFMP; 09 Jun 2011 21:06:36 -0000 Received: from [98.139.211.195] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 09 Jun 2011 21:06:36 -0000 Received: from [127.0.0.1] by smtp204.mail.bf1.yahoo.com with NNFMP; 09 Jun 2011 21:06:36 -0000 Received: from cgf.cx (cgf@173.48.46.160 with login) by smtp204.mail.bf1.yahoo.com with SMTP; 09 Jun 2011 14:06:36 -0700 PDT X-Yahoo-SMTP: jenXL62swBAWhMTL3wnej93oaS0ClBQOAKs8jbEbx_o- Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 3B22142804C for ; Thu, 9 Jun 2011 17:06:35 -0400 (EDT) Date: Thu, 09 Jun 2011 21:06:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: cygcheck's understanding of TZ Message-ID: <20110609210632.GA1457@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110609094631.56364lzi64m7t4d3@messagerie.si.c-s.fr> <4DF10C13.3040208@cwilson.fastmail.fm> <811AA35F-E300-46E5-9FE3-EE7D5E58194B@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <811AA35F-E300-46E5-9FE3-EE7D5E58194B@free.fr> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00098.txt.bz2 On Thu, Jun 09, 2011 at 09:50:02PM +0200, Denis Excoffier wrote: > >On 2011-06-09 21:26, Edward McGuire wrote: > >> 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. > >Exactly. That's why i suggested to use the UTC time zone (rather than >an implicit local one), which msvcrt.dll probably is able to provide >with no bug. > >We also could go a little bit beyond cgf's suggestion in >http://cygwin.com/ml/cygwin/2011-06/msg00091.html >(to use `date(1)') and remove completely the `Current System Time:' >line in `cygcheck -s'. Already, this time indication is not given >under the other cygcheck's options. We're not changing anything. Having the date there is useful. Again: you shouldn't use "cygcheck -s" as a method to find the system date. Just think of all of the other things that "cygcheck -s" is doing in addition to displaying the date. cygcheck is most definitely not intended for this purpose. cgf -- 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