> > From: Gavin Smith <[email protected]> > > Date: Thu, 9 Nov 2023 21:26:11 +0000 > > > > I have just pushed a commit (e3a28cc9bf) to use gnulib/libunistring > > functions instead of the locale-dependent functions mbrtowc and wcwidth. > > This allows for a significant simplification as we do not have to try > > to switch to a UTF-8 encoded locale. > > > > I was not sure about how to put a char32_t literal in the source code. > > For example, where we previously had L'a' as a literal wchar_t letter 'a', > > I changed this to U'a'. I could not find very much information about this > > online or whether this would be widely supported by C compilers. The U > > prefix > > for char32_t is mentioned in a copy of the C11 standard I found online and > > also in a C23 draft.
My answer is at <https://lists.gnu.org/archive/html/bug-libunistring/2023-11/msg00000.html>. Eli Zaretskii wrote: > OTOH, the char32_t type is not supported by this GCC, not even if I > use -std=gnu2x. Maybe we should use uint_least32_t instead? The char32_t type is provided by Gnulib's 'uchar' module, if the system does not have it. Bruno
