Eric Blake wrote:
It might help to mention all three characters in the NEWS blurb.
Thanks, I pushed the attached patch.
From b1d12dbdfb0b5b9fbd661e5dac57803fa3db5efb Mon Sep 17 00:00:00 2001 From: Paul Eggert <[email protected]> Date: Sat, 1 Mar 2014 15:04:29 -0800 Subject: [PATCH] doc: describe titlecase fix better * NEWS: Document behavior on lowercase text too. Suggested by Eric Blake in <http://bugs.gnu.org/16911#10>. * doc/grep.texi (Matching Control): Specify behavior of -i more precisely. --- NEWS | 5 ++++- doc/grep.texi | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 4b1364c..eaa3c96 100644 --- a/NEWS +++ b/NEWS @@ -20,9 +20,12 @@ GNU grep NEWS -*- outline -*- per the documentation on how grep's -w works. grep -i no longer mishandles patterns containing titlecase characters. + A pattern character now matches its lowercase and uppercase + counterparts, even when they both differ from the pattern. For example, in a locale containing the titlecase character 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL LETTER J), - 'grep -i Lj' now matches 'LJ' (U+01C7 LATIN CAPITAL LETTER LJ). + 'grep -i Lj' now matches both 'LJ' (U+01C7 LATIN CAPITAL LETTER LJ) + and 'lj' (U+01C9 LATIN SMALL LETTER LJ). * Noteworthy changes in release 2.18 (2014-02-20) [stable] diff --git a/doc/grep.texi b/doc/grep.texi index e82f34d..b9d6ec5 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -193,7 +193,8 @@ The empty file contains zero patterns, and therefore matches nothing. @opindex -y @opindex --ignore-case @cindex case insensitive search -Ignore case distinctions in both the pattern and the input files. +Ignore case distinctions, so that a pattern character matches not only +itself in the text, but also its lowercase and uppercase counterparts, if any. @option{-y} is an obsolete synonym that is provided for compatibility. (@option{-i} is specified by POSIX.) -- 1.8.5.3
