X window endian problems.

Who'd have thought that a PC (little endian cpu) displaying on a HPUX (big endian) via X windows would need to have the endianess manually fixed up?