@@ -1358,25 +1358,31 @@ for (size_t i = 0; i < minimumLength; i++) { of_unichar_t c = characters[i]; of_unichar_t oc = otherCharacters[i]; +#ifdef OF_HAVE_UNICODE_TABLES if (c >> 8 < OF_UNICODE_CASEFOLDING_TABLE_SIZE) { of_unichar_t tc = of_unicode_casefolding_table[c >> 8][c & 0xFF]; if (tc) c = tc; } - if (oc >> 8 < OF_UNICODE_CASEFOLDING_TABLE_SIZE) { of_unichar_t tc = of_unicode_casefolding_table[oc >> 8][oc & 0xFF]; if (tc) oc = tc; } +#else + if (c <= 0x7F) + c = toupper(c); + if (oc <= 0x7F) + oc = toupper(oc); +#endif if (c > oc) { objc_autoreleasePoolPop(pool); return OF_ORDERED_DESCENDING; }