Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 6 Nov 2001 23:26:53 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT 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 AT cygwin DOT com References: <3BE70FEB DOT 1020106 AT cportcorp DOT com> <20011105173945 DOT A23269 AT redhat DOT com> <3BE848B7 DOT 6030603 AT cportcorp DOT 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 AT cygwin DOT 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/