NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xsrc/60399: /usr/X11R7/include/X11/pixmaps/NetBSD-flag2.xpm has bad colormap



>Number:         60399
>Category:       xsrc
>Synopsis:       /usr/X11R7/include/X11/pixmaps/NetBSD-flag2.xpm has bad colormap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 03 00:30:00 +0000 2026
>Originator:     Jeff W.
>Release:        NetBSD 11.0_RC5
>Organization:
unorganized
>Environment:
	
	
System: NetBSD lenovo 11.0_RC5 NetBSD 11.0_RC5 (GENERIC) #0: Tue Jun 30 14:30:15 UTC 2026 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	display of /usr/X11R7/include/X11/pixmaps/NetBSD-flag2.xpm fails
        due to a bad colormap, specifically the use of "Grey" instead of
        "Gray" in two places.
>How-To-Repeat:
	install the ImageMagick package and attempt to display with the
        'display <file>' command, then run 'identify <file>' which shows
        --
        identify: unrecognized color `Grey' @ warning/color.c/GetColorCompliance/1064.
        identify: corrupt image `/usr/X11R7/include/X11/pixmaps/NetBSD-flag2.xpm' @ error/xpm.c/ReadXPMImage/475.
        --

>Fix:
	Because this file only needs a single character replaced in two
        places the bvi binary file editor can be used.  The following
        was done as a proof-of-concept:

        $ sudo pkgin install ImageMagick bvi
        $ cp /usr/X11R7/include/X11/pixmaps/NetBSD-flag2.xpm /tmp/
        $ bvi /tmp/NetBSD-flag2.xpm
        :set memmove
        :%s/Grey/Gray/g
        :w /tmp/NetBSD-flag2-fixed.xpm
        :q!
        $ identify /tmp/NetBSD-flag2-fixed.xpm
        /tmp/NetBSD-flag2-fixed.xpm XPM 185x150 185x150+0+0 8-bit sRGB 33c 28956B 0.000u 0:00.001
        $ display /tmp/NetBSD-flag2-fixed.xpm
        => image displays as expected

>Unformatted:
 	
 	



Home | Main Index | Thread Index | Old Index