From: Kelly Burkhart <kelly@tradebotsystems.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Kelly Burkhart <kelly@kkcsm.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: 32-bit ints on 64-bit linux
Date: Mon, 21 Mar 2005 13:28:59 -0600
Message-ID: <1111433339.26601.89.camel@krb06> (raw)
In-Reply-To: <200503181625.09496.peter_e@gmx.net>
References: <4224F80D.2080103@kkcsm.net>
<422727B1.9040104@kkcsm.net>
<200503181625.09496.peter_e@gmx.net>
On Fri, 2005-03-18 at 09:25, Peter Eisentraut wrote:
> Am Donnerstag, 3. März 2005 16:05 schrieb Kelly Burkhart:
> > I'm attaching a patch which fixes this, and some other questionable
> > sprintf format strings in convert.c.
>
> Do we have any evidence that the other ones are broken?
No, I do not.
I suggested that the other format strings were questionable based on a
reading of the glibc printf man page. Aside from the 32-bit integer
problem the other formats work fine in the unmodified form on the three
platforms I use.
Can anyone with a better understanding of the libc standard comment on
the "correctness" of the following lines?
int8_t i1;
int16_t i2;
printf("%d", i1);
printf("%d", i2);
vs:
printf("%hhd", i1);
printf("%hd", i2);
-K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: kelly@tradebotsystems.com, peter_e@gmx.net, kelly@kkcsm.net
Subject: Re: 32-bit ints on 64-bit linux
In-Reply-To: <1111433339.26601.89.camel@krb06>
References: <4224F80D.2080103@kkcsm.net> <422727B1.9040104@kkcsm.net> <200503181625.09496.peter_e@gmx.net> <1111433339.26601.89.camel@krb06>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox