maint: include ctype.h selectively
commit4edb14d20f972595fd08f841b94f7454752e2b5f
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Oct 2023 00:31:49 +0000 (27 17:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Oct 2023 07:58:04 +0000 (30 00:58 -0700)
tree4128d72d6da7d97ede07bfdbbbcc03eaadd865e9
parent684e810ae2de35dd2761bc28149280a249810d5b
maint: include ctype.h selectively

Include ctype.h only in files that need it.  Many of its uses
are incorrect, as they assume single-byte locales.  The idea is
to remove the incorrect uses later, when there is time.
* src/chroot.c, src/csplit.c, src/dd.c, src/digest.c, src/dircolors.c:
* src/expand-common.c, src/expand.c, src/fmt.c, src/fold.c, src/ls.c:
* src/od.c, src/pinky.c, src/pr.c, src/ptx.c, src/seq.c:
* src/set-fields.c, src/split.c, src/stdbuf.c, src/test.c:
* src/tr.c, src/truncate.c, src/unexpand.c, src/wc.c:
Include ctype.h.
* src/system.h: Do not include ctype.h.

include ctype.h.o
24 files changed:
src/chroot.c
src/csplit.c
src/dd.c
src/digest.c
src/dircolors.c
src/expand-common.c
src/expand.c
src/fmt.c
src/fold.c
src/ls.c
src/od.c
src/pinky.c
src/pr.c
src/ptx.c
src/seq.c
src/set-fields.c
src/split.c
src/stdbuf.c
src/system.h
src/test.c
src/tr.c
src/truncate.c
src/unexpand.c
src/wc.c