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. 

Attachment: grep-ignore-icase.txt
Description: Binary data

Reply via email to