[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16631: Consideration of title case on case-insensitive matching
From: |
Norihiro Tanaka |
Subject: |
bug#16631: 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
- bug#16631: Consideration of title case on case-insensitive matching,
Norihiro Tanaka <=