Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: denzel.in: rtroy owned process doing -bs Date: Tue, 14 Jan 2003 01:12:37 -0800 (PST) From: Richard Troy X-X-Sender: To: Cygwin Subject: Re: GCC bug with strftime In-Reply-To: <20030114090546.GB1373@cygbert.vinschen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Thanks, Corinna, ...Good thing I've already written a work-around! -smile- Gee, you never know what you might learn by posting on the wrong list! -wink- RT -- Richard Troy, Chief Scientist Science Tools Corporation rtroy AT ScienceTools DOT com, 510-567-9957, http://ScienceTools.com/ On Tue, 14 Jan 2003, Corinna Vinschen wrote: > Date: Tue, 14 Jan 2003 10:05:46 +0100 > From: Corinna Vinschen > Reply-To: cygwin AT cygwin DOT com > To: Cygwin > Subject: Re: GCC bug with strftime > > On Mon, Jan 13, 2003 at 07:00:07PM -0800, Richard Troy wrote: > > > > The problem is that this call fails to return an hour: > > > > > > > > strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime); > > I'm sorry to say that but... > > > The answer is yes, I have checked. The code works in my various RedHat > > environments and has been for a long time. Also capital I is not what I > > ...just because it works under RH Linux it doesn't mean it's correct code. > The %l specifier character is not covered by SUSv3: > > http://www.opengroup.org/onlinepubs/007904975/functions/strftime.html > > which means, your usage of %l is non-portable. > > Corinna > > -- 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/