Skip to content

Weird non-matching error with ignore-case and certain strings containing non-ascii characters? #267

@crumblingstatue

Description

@crumblingstatue

I really don't know what to make of this.

I tried to search my project for "magnézium", ignoring case, but I didn't get any matches, even though I know the project has several instances of it.
So I did some test cases:

echo 'Néz' | rg -i néz
1:Néz

Good

echo 'Agnéz' | rg -i agnéz
1:Agnéz

Still good

echo 'Magnéz' | rg -i magnéz

What? This suddenly doesn't match, even though I only added a M letter?

echo 'Magnez' | rg -i magnez
1:Magnez

But wait... If I replace the non-ascii é with e, it matches again.

Using ripgrep 0.3.1. The non-matching case works correctly using grep or git grep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateAn issue that is duplicative of another.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions