Bug#611123: GRUB doesn't allow background images with upper case file extensions

Colin Watson cjwatson at debian.org
Tue Jan 25 20:21:49 UTC 2011


On Tue, Jan 25, 2011 at 09:06:29PM +0100, Alexander Kurtz wrote:
> when I try to use background images with upper case file extensions
> (e.g. `foo.JPEG') it doesn't work. If I try to debug this manually from
> the grub shell, I get this:
> 
> 	grub> background_image /grub/comet.JPEG
> 	error: unsupported bitmap format
> 	grub>
> 
> This is unfortunate since most digital cameras produce images with upper
> case file extensions. FAT filesystems and Windows in general might be
> other sources of files with upper case file extensions.
> 
> I can confirm that the attached patch fixes the problem for me. If you
> have no objections, please include it in the next upload and submit it
> upstream.

Instead of manually entering possible case variations, could you just
make match_extension do case-insensitive comparison?  grub_strcasecmp is
available.

Please send the patch to grub-devel at gnu.org, if you can - it's best if
it comes from you directly.

Thanks,

-- 
Colin Watson                                       [cjwatson at debian.org]





More information about the Pkg-grub-devel mailing list