# HG changeset patch # User Carnë Draug # Date 1389894899 0 # Node ID 4718af222d9dc7dbd9b5932d1725c9a1864831d8 # Parent 9b163d6c1de7bedfb7e2513e2abcfcb8ada98974 image/imformats.m: be case insensitive about file extension. diff -r 9b163d6c1de7 -r 4718af222d9d scripts/image/imformats.m --- a/scripts/image/imformats.m Thu Jan 16 10:21:02 2014 -0800 +++ b/scripts/image/imformats.m Thu Jan 16 17:54:59 2014 +0000 @@ -266,11 +266,10 @@ endfunction function match = find_ext_idx (formats, ext) - ## FIXME: is matlab sensitive to file extensions? ## XXX: what should we do if there's more than one hit? ## Should this function prevent the addition of ## duplicated extensions? - match = cellfun (@(x) any (strcmp (x, ext)), {formats.ext}); + match = cellfun (@(x) any (strcmpi (x, ext)), {formats.ext}); endfunction function bool = isa_magick (coder, filename)