]> git.ipfire.org Git - thirdparty/coreutils.git/commit
doc: clarify what's counted by wc
authorPádraig Brady <P@draigBrady.com>
Sun, 11 Apr 2021 15:24:07 +0000 (16:24 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 11 Apr 2021 18:23:13 +0000 (19:23 +0100)
commit512fe0490254aaa3cb679237dafe9cc1bb7cd3ea
tree2ecc50fd51f5a0808a410276d3b12ab4a92f835d
parentef772bf97f7ec577754cbb5b278504d83cf41a43
doc: clarify what's counted by wc

* src/wc.c (usage): State that only printable characters are considered
when counting words.  This also disambiguates wether we're talking
about bytes or characters in this context.
* doc/coreutils.texi (wc invocation): Likewise.  Also clarify
that --characters counts valid locale aware characters,
and that --lines does not count a trailing "line" unless
it ends with a newline character.
Fixes https://bugs.gnu.org/47702
doc/coreutils.texi
src/wc.c