|Summary:||gdm pixbuf loader xbm fails|
|Product:||Red Hat Enterprise Linux 6||Reporter:||Abrahm Scully <abrahm.scully>|
|Component:||gdk-pixbuf2||Assignee:||Benjamin Otte <otte>|
|Status:||NEW ---||QA Contact:||Desktop QE <desktop-qa-list>|
|Fixed In Version:||Doc Type:||If docs needed, set a value|
|Doc Text:||Story Points:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Cloudforms Team:||---||Target Upstream Version:|
Description Abrahm Scully 2017-12-01 18:10:15 UTC
Created attachment 1361715 [details] fixes backported from upstream Description of problem: Upstream bug https://bugzilla.gnome.org/show_bug.cgi?id=573726 Gentoo downstream bug https://bugs.gentoo.org/255422 Version-Release number of selected component (if applicable): gdk-pixbuf2-2.24.1-6 How reproducible: 100% Steps to Reproduce: 1. Try to load an XBM file with gdk_pixbuf_new_from_file(). Actual results: Loader fails because image format not supported. Expected results: Loader succeeds because image format is supported. Additional info:
Comment 2 Abrahm Scully 2017-12-01 18:11:36 UTC
Created attachment 1361716 [details] spec file used to test fix
Comment 3 Abrahm Scully 2017-12-01 18:13:45 UTC
With the attached spec file and patch, xbm files are loaded correctly again.
Comment 4 Abrahm Scully 2017-12-01 18:21:08 UTC
As an aside, libgio-2.0's file type detection sometimes doesn't detect an .xbm file as "text/plain" if there are comments at the top of the .xbm file. If the .xbm file is detected as a different file type, the attached patch will not help. For example .xbm files created with The GIMP might have "/* Created with The GIMP */" as the first line of the file. Those are detected as something other than "text/plain" and therefore will not load. The same files load successfully when modified to only contain the #define lines and the byte array.