]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: mention Unicode exceptions for wc
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Sep 2023 07:23:26 +0000 (00:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Sep 2023 07:28:28 +0000 (00:28 -0700)
doc/coreutils.texi

index 4167660a7c27737e5db6ab7d14174bd49b8fe455..ee3b1ce11a1650168a6ec2ff685cfb19f162cd77 100644 (file)
@@ -3859,6 +3859,13 @@ space delimited by white space characters or by start or end of input.
 The current locale determines which characters are white space.
 GNU @command{wc} treats encoding errors as non white space.
 
+@vindex POSIXLY_CORRECT
+Unless the environment variable @env{POSIXLY_CORRECT} is set,
+GNU @command{wc} treats the following Unicode characters as white
+space even if the current locale does not: U+00A0 NO-BREAK SPACE,
+U+2007 FIGURE SPACE, U+202F NARROW NO-BREAK SPACE, and U+2060 WORD
+JOINER.
+
 @item -l
 @itemx --lines
 @opindex -l