diff options
author | Jim Meyering <meyering@fb.com> | 2013-10-11 11:47:54 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2013-10-19 12:35:21 -0700 |
commit | 2ba43c99fb7d443c0b907503519a9934872bcdaf (patch) | |
tree | fd32e4dbed43e7b831e7d60336e88e82434a7947 /NEWS | |
parent | 5e823a2781a586de56876b572493aa26212b18db (diff) | |
download | grep-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-- | NEWS | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |