Re: [PATCH v3 0/9] icase match on non-ascii
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jul 15, 2015, 09:39 UTC
- Message-ID
- <CACsJy8BXGt25tGoarry=UQS6E4Q54kicG5oY9uoU6W_hw1wYtg@mail.gmail.com>
- In-Reply-To
- <55A53C13.5090405@web.de>
On Tue, Jul 14, 2015 at 11:42 PM, Torsten Bögershausen <tboegi@web.de> wrote:
Show 26 quoted lines
> (I haven't been able to do more debugging yet, > but this doesn't fully work on my Mac OS X box:) > > Initialized empty Git repository in > /Users/tb/NoBackup/projects/git/tb.150714_Duy_grep_utf8/t/trash > directory.t7812-grep-icase-non-ascii/.git/ > # lib-gettext: Found 'is_IS.UTF-8' as an is_IS UTF-8 locale > # lib-gettext: Found 'is_IS.ISO8859-1' as an is_IS ISO-8859-1 locale > expecting success: > printf "TILRAUN: Halló Heimur!" >file && > git add file && > LC_ALL="$is_IS_locale" && > export LC_ALL > > ok 1 - setup > > expecting success: > git grep -i "TILRAUN: Halló Heimur!" && > git grep -i "TILRAUN: HALLÓ HEIMUR!" > > file:TILRAUN: Halló Heimur! > not ok 2 - grep literal string, no -F > # > # git grep -i "TILRAUN: Halló Heimur!" && > # git grep -i "TILRAUN: HALLÓ HEIMUR!" > #
I don't know if there's an easy way to test if regexec() on your system supports locale (at least for is_IS). I can reproduce the same by using compat regex. So it's not a good news because compat regex is used in a few platforms, so this test will fail on those.
I don't see any way around it, except dropping all the tests. I don't think there is a way for us to test regex locale support at runtime.
-- Duy