? attachment.cgi?id=31607 ? xdgmime-case-sentivity.diff ? src/attachment.cgi?id=31610 Index: src/xdgmimeglob.c =================================================================== RCS file: /cvs/mime/xdgmime/src/xdgmimeglob.c,v retrieving revision 1.6 diff -u -r1.6 xdgmimeglob.c --- src/xdgmimeglob.c 16 Sep 2004 18:09:41 -0000 1.6 +++ src/xdgmimeglob.c 26 Nov 2004 12:57:42 -0000 @@ -253,16 +253,21 @@ { XdgGlobHashNode *node; xdg_unichar_t character; + xdg_unichar_t stop_char; if (glob_hash_node == NULL) return NULL; character = _xdg_utf8_to_ucs4 (file_name); - if (ignore_case) + stop_char = character; + if (ignore_case) { character = _xdg_ucs4_to_upper(character); + if (character > stop_char) + stop_char = character; + } - for (node = glob_hash_node; - node && character >= (ignore_case?_xdg_ucs4_to_upper (node->character):node->character); + for (node = glob_hash_node; + node && character >= stop_char; node = node->next) { if (character == (ignore_case?_xdg_ucs4_to_upper (node->character):node->character))