Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: On 2008-10-07 14:33, Ronald Oussoren wrote: > Ronald Oussoren <[EMAIL PROTECTED]> added the comment: > > Annoyingly enough my patch isn't good enough, it turns out that ctypes > has introduced a SIZEOF__BOOL definition in configure.in and that needs > special caseing as well. > > pymacconfig.h.patch2 fixes that issue as well. Do you have access to a > PPC G5 system? I've determined the correct value of SIZEOF__BOOL for > that platform by reading the assembly code for a small test program and > hence am not 100% sure that sizeof(_Bool) actually is 1 on that > architecture.
Using this helper: #include <stdio.h> main() { printf("sizeof(_Bool)=%i bytes\n", sizeof(_Bool)); } I get: sizeof(_Bool)=4 bytes on a G4 PPC. Seems strange to me, but reasonable since it is defined like this in stdbool.h: #if __STDC_VERSION__ < 199901L && __GNUC__ < 3 typedef int _Bool; #endif ---------- title: PyUnicode_DecodeUTF16(..., byteorder=0) gets it wrong on Mac OS X/PowerPC -> PyUnicode_DecodeUTF16(..., byteorder=0) gets it wrong on Mac OS X/PowerPC _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4060> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com