--- Begin Message ---
Subject: |
Consideration of title case on case-insensitive matching |
Date: |
Tue, 04 Feb 2014 01:20:23 +0900 |
Package: grep
Tags: patch
In UTF-8 character set, an alphabet may have not only upper case and
lower case but title case. grep-2.16 fails in matching as following
in order not to take it into consideration.
echo 'LJ' | LC_ALL=en_US.UTF-8 grep -i Lj
echo 'Lj' | LC_ALL=en_US.UTF-8 grep -i LJ
We expect that LJ and Lj are returned, respectively. But both return
nothing.
This patch replaces `towupper' and `towlower' to `towctrans'.
And the above will return the expected results.
grep-ignore-icase.txt
Description: Binary data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#16631: Consideration of title case on case-insensitive matching |
Date: |
Sun, 9 Feb 2014 08:30:22 -0800 |
Thank you both for helping with this issue.
Paul's argument has convinced me that we should not make this change now.
If anyone comes up with a good case for applying this patch, please let us
know and we'll be happy to revisit.
--- End Message ---