Subject: bug#25661: 25.1; XBM raw :data images are not displayed

From: [email-masked]
Date: Thu, 09 Feb 2017 18:18:49 -0500

retitle 25661 25.1; [w32] XBM raw :data images are not displayed
tags 25661 confirmed
quit

[email-masked] writes:

> Emacs displays noisy black rectangles for XBM raw :data images.
>
> ;; wrong image is shown
> (insert-image (create-image "\xff\x81\x81\x81\x81\x81\x81\xff"
>                             'xbm t :width 8 :height 8))
>
> ;; correct image(8x8 pixel framed square) is shown
> (insert-image (create-image "\
> #define tmp_width 8
> #define tmp_height 8
> static char tmp_bits[] = {0xff,0x81,0x81,0x81,0x81,0x81,0x81,0xff};"
>                             'xbm t))
>
>
>
>
> In GNU Emacs 25.1.1 (i686-w64-mingw32)
>  of 2016-09-18 built on LAPHROAIG
> Windowing system distributor 'Microsoft Corp.', version 6.0.6002
> Configured using:
>  'configure --host=i686-w64-mingw32 --without-dbus
>  --without-compress-install CFLAGS=-static'
>

I can reproduce this on Windows, but not on GNU/Linux.