Rank, 14 days: 137 on the Claude Code sheet
2 people reported

All time, since Oct 5.

Grep skips invalid UTF-8

“The whole file is skipped, with no message.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/3793/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Bash tool grep skips files or input with invalid UTF-8. The embedded grep, run with -I, treats input with one invalid UTF-8 byte as binary, so the whole file is skipped with no message.

Is this your bug?

File my report
Where
Bash tool
Versions
2.1.290 to 2.1.322. Still reported on the newest version, 2.1.322.
Platforms
macOS
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Grep shim misses ^ in groups2 people

Original reports2, newest first

  1. [Bash tool] Embedded grep shim silently skips whole files containing any invalid UTF-8 byte (no NUL), which GNU grep searches#109020
  2. Bash tool grep shim: -q/-c/-l and output to /dev/null report no match when stdin has one invalid UTF-8 byte, while printing lines works (macOS, 2.1.290)#99846

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.