Subject: Accent insensitive grep

From: "Avid Seeker" <[email-masked]>
Date: Thu, 15 May 2025 05:49:00 +0000

Re-iterating the question on SO <https://stackoverflow.com/questions/20937864/> of applying an
accent-insensitive grep to text. (e.g: all accents of a letter 'e' should be regarded as an ascii 'e').

The response by Adam Katz mentions:
> You should not expect equivalence classes to be portable as they are too arcane.

What's the stance of grep developers on this? are equivalence classes the
right tool to approach this? I see that they depend on LC_COLLATE, in
which case it would be possible to setup a custom locale that matches
digraphs.

In the example he gave, he also mentions:
> This matches all words like aei... [but won't match] æi... it's quite
> likely that digraphs are beyond the reach of even the best equivalence
> class map.

Is there a way to setup a locale without having to recompile glibc or
are these locale values hardcoded into programs using glibc?

Thanks,
Avid