All currently supported platforms for Couchbase are all little endian, so yes I’m not surprised it doesn’t work
I know the existing code has some (unused) support for WORKDS_BIGENDIAN
, but given we have moved over to CMake for our build system it’s probably better to use CMake’s TestBigEndian support.
If you want to submit a patch, see the information on http://developer.couchbase.com/open-source-projects#how-to-contribute-code - you’ll need to submit to the tlm project.