[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16631: Consideration of title case on case-insensitive matching
From: |
Jim Meyering |
Subject: |
bug#16631: Consideration of title case on case-insensitive matching |
Date: |
Mon, 3 Feb 2014 08:28:44 -0800 |
On Mon, Feb 3, 2014 at 8:20 AM, Norihiro Tanaka <address@hidden> wrote:
> 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.
Thank you for working on this. However, the attached patch is one
that has already been applied.