delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/13/21:59:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: Mon, 13 Jan 2003 19:00:07 -0800 (PST)
From: Richard Troy <rtroy AT sciencetools DOT com>
X-X-Sender: <rtroy AT denzel DOT in>
To: Norman Vine <nhv AT cape DOT com>
cc: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: GCC bug with strftime
In-Reply-To: <031501c2bb75$72f016a0$f836ba8c@sfdev3>
Message-ID: <Pine.LNX.4.33.0301131856000.32485-100000@denzel.in>
MIME-Version: 1.0


> > of cygwin and tried again, but it's still there. So, I'd like to report
> > it. I sent mail to the gcc-bugs list but nobody there seems to care, so I
> > thought I'd mention it here.
> >
> > The problem is that this call fails to return an hour:
> >
> > strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime);
>
> hmmm...
>
> Are you sure that you are not passing a 'el' instead of a capital 'eye'
>
> it is real hard to differentiate in some typefaces
>
> note: python just calls the underlying 'C' strftime() implementation
>
> HTH
>
> Norman

Thanks for the thought, Norman.

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
need; As your example illustrated, it returns a zero padded two digit
hour, but what I want/need is a non-padded hour, two or one digit,
depending. The reason I really care is because there are two programs that
have to talk to one another, one written in C and the other in Java. It
nearly doesn't matter which is which is which, they just have to agree on
the format. All was fine until I compiled the code on my cygwin
installation.

-shrug-

Richard


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019