Back to the list (I didn't realize it was just in CC) i
----- Forwarded Message ----- From: "Chris Knight" <christopher.d.kni...@nasa.gov> To: "Igor Galić" <i.ga...@brainsware.org> Sent: Saturday, 21 August, 2010 12:22:23 AM Subject: Re: %lld/%llu not handled by apr_vformatter That's fine with me. On Aug 20, 2010, at 3:21 PM, Igor Galić wrote: > > ----- "Chris Knight" <christopher.d.kni...@nasa.gov> wrote: > >> That's solving a different problem (a problem nonetheless, but not the >> problem I'm referring to), the definition of APR_INT64_T_FMT. The >> problem is, no matter what the definition of APR_INT64_T_FMT is, >> apr_vformatter should support %lld whereas now it doesn't support %lld >> if APR_INT64_T_FMT is defined as %ld. (Whereas the OS does support >> %lld even though it's functionally equivalent as %ld on a 64-bit OS.) > > duh. > I just realized I sent the mail to you, not to the list. > It wasn't really my intention - can we take it back to the list? > > i > >> On Aug 20, 2010, at 2:19 PM, Igor Galić wrote: >> >>> >>> ----- "Chris Knight" <christopher.d.kni...@nasa.gov> wrote: >>> >>>> I am on 64-bit, %lu works just fine. My problem is that %llu on my >>>> 64-bit OS causes apr_vformatter to not identify %llu as a "%" >> string, >>>> so that in my example below it skips the %llu and sends the >> u_int64_t >>>> to the %s, causing a seg fault. Whereas printf does not have this >>>> behavior on a 64-bit OS. >>>> >>>> Anyways, I've submitted a patch on an existing bug, who knows if >> it'll >>>> take. :) >>>> >>>> https://issues.apache.org/bugzilla/show_bug.cgi?id=48476 >>> >>> Hi folks, >>> >>> I've had the same kind of trouble on Solaris, getting APR to >> compile >>> for 32 and 64 bit - my naive solution (in pseudo code) >>> can be found here: >>> >>> http://www.mail-archive.com/dev%40apr.apache.org/msg23153.html >>> >>> In short: When we find a (usable) inttypes.h/stdint.h we use it. >>> >>> The only real issue left (I believe) is the size of the void >> pointer. >>> >>> so long, >>> i >>> -- >>> Igor Galić >>> >>> Tel: +43 (0) 664 886 22 883 >>> Mail: i.ga...@brainsware.org >>> URL: http://brainsware.org/ > > -- > Igor Galić > > Tel: +43 (0) 664 886 22 883 > Mail: i.ga...@brainsware.org > URL: http://brainsware.org/ -- Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/