forked from enlightenment/enlightenment
* Use case insensitive match for suffixes
SVN revision: 20550
This commit is contained in:
parent
8714162645
commit
d9411eda2f
|
@ -322,8 +322,8 @@ e_fm_mime_set(E_Fm_File *file)
|
||||||
E_Fm_Mime_Entry *entry;
|
E_Fm_Mime_Entry *entry;
|
||||||
|
|
||||||
entry = (E_Fm_Mime_Entry *)l->data;
|
entry = (E_Fm_Mime_Entry *)l->data;
|
||||||
|
|
||||||
/* FIXME add all the possible comparision, suffix,regexp,flags,etc */
|
/* FIXME add all the possible comparision, suffix,regexp,flags,etc */
|
||||||
|
|
||||||
if(entry->suffix)
|
if(entry->suffix)
|
||||||
{
|
{
|
||||||
char *suffix;
|
char *suffix;
|
||||||
|
@ -331,7 +331,7 @@ e_fm_mime_set(E_Fm_File *file)
|
||||||
suffix = _e_fm_mime_suffix_get(file->name);
|
suffix = _e_fm_mime_suffix_get(file->name);
|
||||||
if(!suffix)
|
if(!suffix)
|
||||||
continue;
|
continue;
|
||||||
if(!strcmp(suffix,entry->suffix))
|
if(!strcasecmp(suffix,entry->suffix))
|
||||||
{
|
{
|
||||||
//printf("found by suffix %s\n", suffix);
|
//printf("found by suffix %s\n", suffix);
|
||||||
file->mime = entry;
|
file->mime = entry;
|
||||||
|
|
Loading…
Reference in New Issue