On 2025-05-06 00:37, Arkadiusz Miśkiewicz via Bug reports for GNU grep
wrote:
Is that expected behavior, no binary file warning and no matching with
utf-8 locale, even with -a?
It's allowed behavior, as '.' need not match encoding errors.[1] Also,
'grep' need not diagnose encoding errors that don't harm the output.[2]
As you mentioned in your email, using LC_ALL=C should let '.' match any
byte, so that should let you do what you want.
[1]:
https://www.gnu.org/software/grep/manual/html_node/Fundamental-Structure.html
[2]:
https://www.gnu.org/software/grep/manual/html_node/File-and-Directory-Selection.html