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 CB29153AC6 for ; Tue, 26 Apr 2005 11:24:27 -0300 (ADT) 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 08256-01 for ; Tue, 26 Apr 2005 14:24:14 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 853E653A4D for ; Tue, 26 Apr 2005 11:24:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3QEOBKm001709; Tue, 26 Apr 2005 10:24:11 -0400 (EDT) To: lothar.behrens@lollisoft.de Cc: pgsql-odbc@postgresql.org Subject: Re: Bool values under Mac OS X In-reply-to: <426E51B7.30166.1217E8C@localhost> References: <426E51B7.30166.1217E8C@localhost> Comments: In-reply-to lothar.behrens@lollisoft.de message dated "Tue, 26 Apr 2005 14:35:35 +0200" Date: Tue, 26 Apr 2005 10:24:11 -0400 Message-ID: <1708.1114525451@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/81 X-Sequence-Number: 5240 lothar.behrens@lollisoft.de writes: > My conversion is these: > bool b = *(bool*) buffer; What's the data type of "buffer"? On Intel hardware the above will fetch the low-order byte of "buffer", but on PPC (and other big-endian) hardware, it will fetch the high-order byte. I suspect strongly that your problem has nothing to do with OS X versus Windows and everything to do with being careless about endianness issues. regards, tom lane