[Xcb] Endianness question
Barton C Massey
bart at cs.pdx.edu
Sun Nov 30 20:19:21 PST 2008
As far as I know, the X server will indeed send everything
with the requested endianness (except image data, sigh). So
offhand I suspect the problem you're seeing is elsewhere...
Bart
In message <20081130122217.GT25439 at abydos.adm.naquadah.org> you wrote:
> 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) ?
More information about the Xcb
mailing list