Open GoogleCodeExporter opened 9 years ago
maybe you can fix this bug via change SIZEOF_POSITION_INFORMATION to 24 on snow
leopard, or more appropriately set SIZEOF_POSITION_INFORMATION to
sizeof(fpos_t)+sizeof(size_t)*2.
this method fails. the following will succeed.
// an entry is build like this:
// 8 bytes block position in the file
// 4 bytes position inside the block
// 4 bytes length of the article
// title in plain utf-8 coding
// terminating zero
fwrite(¤tBlockPos, 1, sizeof currentBlockPos, titlesFile);
fwrite(¤tDestSize, 1, sizeof currentDestSize, titlesFile);
fwrite(&length, 1, sizeof length, titlesFile);
fwrite(title, 1, strlen(title)+1, titlesFile);
change variable 'currentDestSize' and 'length' to 32bit integer type like int
in xcode environment.
Original comment by simpzan
on 17 Sep 2011 at 7:19
Original issue reported on code.google.com by
simpzan
on 5 Sep 2011 at 2:37