diff options
author | Pádraig Brady <P@draigBrady.com> | 2019-02-23 21:23:47 -0800 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2019-02-25 22:49:44 -0800 |
commit | a5202bd58531923ea9f93cc35ddeec5e3a8e0189 (patch) | |
tree | a7530c8d01d08dd8561c20b1512f330127d7090b /bootstrap.conf | |
parent | 2ab2f7a422652a9ec887e08ca8935b44e9629505 (diff) | |
download | coreutils-a5202bd58531923ea9f93cc35ddeec5e3a8e0189.tar.gz |
wc: treat non breaking space as a word separator
* src/wc.c (iswnbspace): A new function to match
characters in this class.
(isnbspace): Likewise for single byte charsets.
(main): Initialize posixly_correct from the environment,
to allow disabling honoring NBSP in non C locales.
(wc): Call is[w]nbspace() along with is[w]space.
* bootstrap.conf: Ensure btowc is available.
* tests/misc/wc-nbsp.sh: A new test.
* tests/local.mk: Reference the new test.
* NEWS: Mention the change in behavior.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index a525ef442..49261524a 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -38,6 +38,7 @@ gnulib_modules=" backup-rename base32 base64 + btowc buffer-lcm c-strcase cl-strtod |