[Xcb] Endianness question
Julien Danjou
julien at danjou.info
Sun Nov 30 04:22:17 PST 2008
Hi people,
I'm facing a bug in xcb-util, which is very probably caused by an
endianness issue.
For people following at home, the problem is in xcb-icccm, function
xcb_get_wm_hints_from_reply().
The result of xcb_get_property_value() is memcpy()'ed to a struct,
directly. The problem is, I think, that if this work well on x86 (little
endian), it totally fails on ppc (big endian) for example.
I used to think that XCB or X took care of always sending data in the
same endianness, but it seems I'm wrong.
What's the good way to fix such a issue (if I'm right that
this is the issue) ?
Cheers,
--
Julien Danjou
// ᐰ <julien at danjou.info> http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20081130/a51cc6c7/attachment.pgp
More information about the Xcb
mailing list