NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: xsrc/59952: xsetwallpaper: server/client endian mismatch
The following reply was made to PR xsrc/59952; it has been noted by GNATS.
From: Adrian Chadd <adrian%freebsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: xsrc-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: xsrc/59952: xsetwallpaper: server/client endian mismatch
Date: Sat, 31 Jan 2026 08:51:38 -0800
On Sat, 31 Jan 2026 at 03:35, Valery Ushakov via gnats
<gnats-admin%netbsd.org@localhost> wrote:
>
> The following reply was made to PR xsrc/59952; it has been noted by GNATS.
>
> From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc:
> Subject: Re: xsrc/59952: xsetwallpaper: server/client endian mismatch
> Date: Sat, 31 Jan 2026 14:30:54 +0300
>
> FWIW, xsetwallpaper photo.jpg DTRT for me when I run it on a
> (big-endian) macppc (running 10-stable) host with the display to Xnest
> on a (little-endian) linux/amd64.
Would you mind adding some printf debugging to see what the image endianness is?
My setup (sgimips/be xserver, amd64/le client) prints that the default
byte_order for the
root window is MSB (big endian), which won't match the little-endian image data.
My diff looks like this (it's from a bigger diff set, but you should
be able to copy/paste
the lines minus the '+' at the beginning into the right place,
recompile and test.)
===
XInitImage(image);
+ printf("byte order: %d (msb=%d lsb=%d)\n",
+ byte_order, MSBFirst, LSBFirst);
===
-adrian
> -uwe
>
Home |
Main Index |
Thread Index |
Old Index