Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 6 Nov 2001 23:26:53 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: fileutils, sh-utils fail to compile due to _tzname, _LIBC undefined
Message-ID: <20011106232653.O2965@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <3BE70FEB.1020106@cportcorp.com> <20011105173945.A23269@redhat.com> <3BE848B7.6030603@cportcorp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3BE848B7.6030603@cportcorp.com>; from peter.buckley@cportcorp.com on Tue, Nov 06, 2001 at 03:31:51PM -0500

On Tue, Nov 06, 2001 at 03:31:51PM -0500, Peter Buckley wrote:
> Thanks to Chris and Josh, I have gotten a little further- at least in 
> providing info that will hopefully help someone help me along even 
> further. I got "date +%z" to work, it correctly tells me -0500. But 
> "date +%Z" outputs nothing, because it "there is no determinable timezone".
> 
> I got "info date" to work, but I didn't find out how to set the timezone 
>   (%Z). It seems that "date --set=xxx" doesn't affect the timezone.
> 
> AFAICT, I am going to have to write a c file that will call tzset() to 
> set the timezone correctly- best case I do this once, and the timezone 
> stays forever set, worst case I have to include it to compile fileutils 
> and sh-utils (and anything else that relies on time, strftime etc).
> 
> But I am concerned that fileutils and sh-utils actually do compile OOTB 
> for everyone else, and there is some lurking problem with my system that 
> this hack of calling tzset() will only workaround in this case.
> 
> I would appreciate any ideas of what the root problem is, or even a 
> definitive "fileutils and sh-utils will compile OOTB" or "they won't 
> compile OOTB".

I'm pretty sure the root problem is the following part of newlib's
strftime implementation:

	        case 'Z':
		  break;

You see?  No implementation of the %Z format at all...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

