[PATCH v3] ucrtbase: Fix handling of tab and non-breaking space in iswctype().

Piotr Caban piotr.caban at gmail.com
Thu Dec 26 09:14:07 CST 2019


Hi Chip,

On 12/12/19 12:23 AM, Chip Davis wrote:
> +/*********************************************************************
> + *		_iswctype_l (MSVCRT.@)
> + */
> +int CDECL MSVCRT__iswctype_l(MSVCRT_wchar_t wc, MSVCRT_wctype_t type, MSVCRT__locale_t locale)
> +{
> +    int ret = (get_char_typeW(wc) & 0xffff) & type;
> +
> +#if _MSVCR_VER >= 140
> +    if (wc == '\t' || wc == 0x00a0) ret &= ~MSVCRT__BLANK;
> +#endif
I think that the function should use _pwctype table for wc <= 256. A 
quick look on the tables exported from ucrtbase and msvcr90 shows that 
there are more differences.

Thanks,
Piotr



More information about the wine-devel mailing list