X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 96265566E7 for ; Mon, 21 Mar 2005 19:29:02 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17883-09 for ; Mon, 21 Mar 2005 19:28:59 +0000 (GMT) Received: from tbmail.tradebot.com (mail.tradebotsystems.com [209.83.219.42]) by svr1.postgresql.org (Postfix) with ESMTP id 96A32566D3 for ; Mon, 21 Mar 2005 19:28:58 +0000 (GMT) Received: from 192.168.200.29 ([192.168.200.29]) by tbmail.tradebot.com ([192.168.1.50]) with Microsoft Exchange Server HTTP-DAV ; Mon, 21 Mar 2005 19:28:59 +0000 Received: from krb06 by tbmail; 21 Mar 2005 13:28:59 -0600 Subject: Re: 32-bit ints on 64-bit linux From: Kelly Burkhart To: Peter Eisentraut Cc: Kelly Burkhart , pgsql-odbc@postgresql.org In-Reply-To: <200503181625.09496.peter_e@gmx.net> References: <4224F80D.2080103@kkcsm.net> <422727B1.9040104@kkcsm.net> <200503181625.09496.peter_e@gmx.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Organization: Tradebot Systems, Inc. Message-Id: <1111433339.26601.89.camel@krb06> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 21 Mar 2005 13:28:59 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.069 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/87 X-Sequence-Number: 5105 On Fri, 2005-03-18 at 09:25, Peter Eisentraut wrote: > Am Donnerstag, 3. M=C3=A4rz 2005 16:05 schrieb Kelly Burkhart: > > I'm attaching a patch which fixes this, and some other questionable > > sprintf format strings in convert.c. >=20 > 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