summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2013-10-11 11:47:54 -0700
committerJim Meyering <meyering@fb.com>2013-10-19 12:35:21 -0700
commit2ba43c99fb7d443c0b907503519a9934872bcdaf (patch)
treefd32e4dbed43e7b831e7d60336e88e82434a7947 /NEWS
parent5e823a2781a586de56876b572493aa26212b18db (diff)
downloadgrep-2ba43c99fb7d443c0b907503519a9934872bcdaf.tar.gz
maint: fix typo in NEWS
* NEWS: Fix/improve example commands in most recent entry. The LC_ALL envvar setting goes before grep, not before printf. Don't reference src/ in the second example command, and do specify the locale.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS7
1 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index a2733672..6f07c131 100644
--- a/NEWS
+++ b/NEWS
@@ -6,10 +6,11 @@ GNU grep NEWS -*- outline -*-
grep's \s and \S failed to work with multi-byte white space characters.
For example, \s would fail to match a non-breaking space, and this
- would print nothing: LC_ALL=en_US.utf8 printf '\xc2\xa0' | grep '\s'
+ would print nothing: printf '\xc2\xa0' | LC_ALL=en_US.UTF-8 grep '\s'
A related bug is that \S would mistakenly match an invalid multibyte
- character. E.g. this would match: printf '\x82\n' | src/grep '^\S$'
- [bug present since 2.6]
+ character. For example, the following would match:
+ printf '\x82\n' | LC_ALL=en_US.UTF-8 grep '^\S$'
+ [bug present since grep-2.6]
grep -i would segfault on systems using UTF-16-based wchar_t (Cygwin)
when converting an input string containing certain 4-byte UTF-8