bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lib/fnmatch.c: mistakes `char32_t` rather than `wchar_t` on Windows


From: Bruno Haible
Subject: Re: lib/fnmatch.c: mistakes `char32_t` rather than `wchar_t` on Windows
Date: Thu, 11 Jul 2024 18:49:09 +0200

YX Hao wrote:
> > `c32*.c` files are newly included, but `uc_is_*` functions are not
> The 2nd error also has gone with a newer gnulib commit 92cdf62b,
> which is merged from the head of wget, using a hack of:
> ```
> sed -i "s/!_GL_SMALL_WCHAR_T/defined _GL_SMALL_WCHAR_T/" lib/fnmatch.c

This workaround of yours disables the support of Unicode characters outside
the BMP (used by Chinese, Emoji, and many other scripts) in fnmatch.

That support is only present through char32_t. That's actually the point of
using char32_t. [1]

Bruno

[1] https://www.gnu.org/software/gnulib/manual/html_node/Characters.html






reply via email to

[Prev in Thread] Current Thread [Next in Thread]