[PATCH] ntdll: Support only ASCII digits in iswdigit implementation.

Jacek Caban jacek at codeweavers.com
Mon Nov 11 13:08:39 CST 2019


On 11/11/19 7:54 PM, Alexandre Julliard wrote:
> 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?


Oh, good catch, sorry about that. I really need vacations...


> It would be interesting to test if the other isw* functions are also
> limited to ASCII.


Sure, I will resend later with more tests.


Thanks,

Jacek




More information about the wine-devel mailing list