Re: Git grep does not support multi-byte characters (like UTF-8)
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jul 6, 2015, 12:23 UTC
- Message-ID
- <CACsJy8BH_QJss57uMJNE=ojNT5vBWKN=eEdrBBS38g6As-UH6A@mail.gmail.com>
- In-Reply-To
- <2008630603.1189842.1436182096558.JavaMail.apache@nm33.abv.bg>
On Mon, Jul 6, 2015 at 6:28 PM, Plamen Totev <plamen.totev@abv.bg> wrote:
> Hello, > > It looks like the git grep command does not support multi-byte character sets like UTF-8. As a result some of the grep functionality is not working. For example if you search for non Latin words the ignore case flag does not have effect(the search is case sensitive). I suspect there are some regular expressions that will not work as expected too.
I think we over-optimized a bit. If you your system provides regex with locale support (e.g. Linux) and you don't explicitly use fallback regex implementation, it should work. I suppose your test patterns look "fixed" (i.e. no regex special characters)? Can you try just add "." and see if case insensitive matching works?
-- Duy