kernelbase: Accept LINGUISTIC_IGNOREDIACRITIC & SORT_DIGITSASNUMBERS in CompareStringEx().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50362
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 0a366f7e4a
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
1d3156843b
commit
678d118c42
|
@ -1859,12 +1859,9 @@ static void test_CompareStringA(void)
|
|||
SetLastError(0xdeadbeef);
|
||||
ret = CompareStringA(entry->lcid, entry->flags, entry->first, entry->first_len,
|
||||
entry->second, entry->second_len);
|
||||
todo_wine_if (entry->flags == LINGUISTIC_IGNOREDIACRITIC)
|
||||
{
|
||||
ok(ret == entry->ret, "%d: got %d, expected %d\n", i, ret, entry->ret);
|
||||
ok(GetLastError() == (ret ? 0xdeadbeef : entry->le), "%d: got last error %d, expected %d\n",
|
||||
i, GetLastError(), (ret ? 0xdeadbeef : entry->le));
|
||||
}
|
||||
}
|
||||
|
||||
ret = CompareStringA(lcid, NORM_IGNORECASE, "Salut", -1, "Salute", -1);
|
||||
|
@ -2031,7 +2028,7 @@ static void test_CompareStringW(void)
|
|||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = CompareStringW(CP_ACP, SORT_DIGITSASNUMBERS, L"NULL", -1, L"NULL", -1);
|
||||
todo_wine ok(ret == CSTR_EQUAL || broken(!ret && GetLastError() == ERROR_INVALID_FLAGS) /* <Win7 */,
|
||||
ok(ret == CSTR_EQUAL || broken(!ret && GetLastError() == ERROR_INVALID_FLAGS) /* <Win7 */,
|
||||
"expected CSTR_EQUAL, got %d, last error %d\n", ret, GetLastError());
|
||||
|
||||
ret = CompareStringW(CP_ACP, 0, ABC_EE, 3, ABC_FF, 3);
|
||||
|
|
|
@ -3022,7 +3022,8 @@ INT WINAPI CompareStringEx( const WCHAR *locale, DWORD flags, const WCHAR *str1,
|
|||
{
|
||||
DWORD supported_flags = NORM_IGNORECASE | NORM_IGNORENONSPACE | NORM_IGNORESYMBOLS | SORT_STRINGSORT |
|
||||
NORM_IGNOREKANATYPE | NORM_IGNOREWIDTH | LOCALE_USE_CP_ACP;
|
||||
DWORD semistub_flags = NORM_LINGUISTIC_CASING | LINGUISTIC_IGNORECASE | 0x10000000;
|
||||
DWORD semistub_flags = NORM_LINGUISTIC_CASING | LINGUISTIC_IGNORECASE | LINGUISTIC_IGNOREDIACRITIC |
|
||||
SORT_DIGITSASNUMBERS | 0x10000000;
|
||||
/* 0x10000000 is related to diacritics in Arabic, Japanese, and Hebrew */
|
||||
INT ret;
|
||||
static int once;
|
||||
|
|
Loading…
Reference in New Issue