]> git.ipfire.org Git - thirdparty/coreutils.git/commit
wc: stop worrying about EBCDIC, shift-JIS, etc
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Sep 2023 01:45:08 +0000 (18:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Sep 2023 07:28:26 +0000 (00:28 -0700)
commit6c16044d8d28a5f6cc02280eaa531487e472f629
tree79ee9efec7024c37567bd16a85431cc4242a2f80
parent17bddc047b5003c1b02cf98f9f3484a681cfa627
wc: stop worrying about EBCDIC, shift-JIS, etc

* src/wc.c: Do not include mbchar.h.
(wc): Check for ASCII characters instead of using is_basic.
Other parts of Gnulib and coreutils already assume the encoding
is upward compatible with ASCII, and the old code wouldn’t
have worked anyway with shift-JIS.
src/wc.c