1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 21:06:38 +02:00

api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte

This commit is contained in:
Sébastien Helleu
2022-12-23 23:20:29 +01:00
parent 91149f0acc
commit 5fc656a1b8
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -566,6 +566,9 @@ TEST(CoreString, Comparison)
LONGS_EQUAL(1, string_strcmp_ignore_chars (".abc..abc", "..", ".", 0));
LONGS_EQUAL(-1, string_strcmp_ignore_chars (".", "..abcabc", ".", 0));
LONGS_EQUAL(0, string_strcmp_ignore_chars (".", ".", ".", 0));
LONGS_EQUAL(-1, string_strcmp_ignore_chars ("è", "é", "", 0));
LONGS_EQUAL(-1, string_strcmp_ignore_chars ("è", "É", "", 0));
LONGS_EQUAL(-1, string_strcmp_ignore_chars ("è", "é", "", 1));
}
/*