[PATCH] ntdll: Support only ASCII digits in iswdigit implementation.
Alexandre Julliard
julliard at winehq.org
Mon Nov 11 12:54:37 CST 2019
Jacek Caban <jacek at codeweavers.com> writes:
> @@ -1455,6 +1459,30 @@ static void test__strnicmp(void)
> ok(!ret, "_strnicmp returned %d\n", ret);
> }
>
> +static void test_iswdigit(void)
> +{
> + static const struct {
> + WCHAR c;
> + int r;
> + } tests[] = {
> + { '0', C1_DIGIT },
> + { '9', C1_DIGIT },
> + { 'a', 0 },
> + { 0xff16, 0 },
> + { 0x0660, 0 },
> + { 0x0660, 0 },
> + { 0x0660, 0 },
Did you mean to try different values here?
It would be interesting to test if the other isw* functions are also
limited to ASCII.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list