]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: prefer char32_t to wchar_t
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Sep 2023 16:45:12 +0000 (09:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Sep 2023 07:28:27 +0000 (00:28 -0700)
commit14d35d5bade2b714e2c7eb4538f21345ebe20684
tree91cf45ebc4047a21e45fc4da6660f4bd79dc12cf
parentc5a210a9c86f3e15b6ae988da4505a031b6a9f7c
maint: prefer char32_t to wchar_t

This should work better on non-glibc platforms that don’t
use Unicode for wchar_t.  However, POSIX appears to prohibit
this for printf.c so leave that alone.
* bootstrap.conf (gnulib_modules): Add btoc32, c32iscntrl,
c32isprint, c32isspace, c32width, mbrtoc32.  Remove btoc, wcwidth.
* src/df.c, src/ls.c, src/wc.c:
Include uchar.h instead of wchar.h and wctype.h.
* src/df.c (replace_invalid_chars):
* src/ls.c (quote_name_buf):
* src/wc.c (isnbspace, wc):
Use char32_t instead of wchar_t.
bootstrap.conf
src/df.c
src/ls.c
src/printf.c
src/wc.c