3 ms·
> when you want to start providing features like case-insensitivity fd does that for English only. See the III/iii case in my comment; iii capitalizes to İİİ i
by oguz-ismail 2y ago
> when you want to start providing features like case-insensitivity
fd does that for English only. See the III/iii case in my comment; iii capitalizes to İİİ in Turkish, there's no way to have fd respect that.
- burntsushi 2y ago> fd does that for English only. That's false. Counter-example: $ touch 'Δ' $ fd δ Δ Your Turkish example doesn't work with `fd` because `fd` doesn't support specific locales or locale specific tailoring for case insensitive matching. It only supports what Unicode calls "simple case folding." It works for things far beyond English, as demonstrated above, but definitely misses some cases specific to particular locales.
- oguz-ismail 2y ago[flagged]
- burntsushi 2y agoI don't maintain `fd`. I'm just here to fix your misrepresentations for others following along. If you need locale specific tailoring, then use `find`. Nothing wrong with that.
- oguz-ismail 2y ago[flagged]
- burntsushi 2y ago@dang - Seems like a troll to me.
- jandrese 2y agoCasefolding is a minefield once you extend past English. It is completely unsurprising to find problems with it in other languages.
- burntsushi 2y agoYes. I'm the one who implemented the case folding the `fd` uses (via its regex engine). See: https://github.com/rust-lang/regex/blob/master/UNICODE.md#rl15-simple-loose-matches https://github.com/rust-lang/regex/blob/master/UNICODE.md#rl... And then Unicode itself for more discussion on the topic: https://unicode.org/reports/tr18/#Simple_Loose_Matches https://unicode.org/reports/tr18/#Simple_Loose_Matches TR18 used to have a Level 3[1] with the kind of locale-specific custom tailoring support found in GNU's implementation of POSIX locales, but it was so fraught that it was retracted completely some years ago. [1]: https://unicode.org/reports/tr18/#Tailored_Support https://unicode.org/reports/tr18/#Tailored_Support