Follow Discord
Sweep 30 Oct 2026 · 01:02Z Build v2.1.314 532 read Stable v2.1.308 Latest v2.1.314 Next v2.1.314 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.314 ·

On macOS, git grep run by Claude now uses the plain C locale

On macOS, simple Bash commands Claude runs that use git grep now run it with LC_ALL=C unless you already define your own git function or alias

You'll notice Improvements
JSON All of v2.1.314
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Bash ToolArea: what it touches
ImprovementsKind: in v2.1.314,
ImprovementsSection of the release
What

On macOS, when Claude runs a shell command through its Bash tool, the tool used for terminal commands, Claude Code can now add a small wrapper for git. The wrapper skips past git's global options. If the subcommand is grep, it runs it as /usr/bin/env LC_ALL=C git ..., which uses the plain C locale instead of your language settings. Any other subcommand runs as normal. The wrapper is not added if you already have a git shell function or alias.

It is only added when all of these hold:

  • The machine is running macOS.
  • The command text contains both "git" and "grep".
  • The command is 1000 characters or shorter and contains only ASCII characters.
  • The command is a simple command, not a more complex shell construct.
  • No git grep argument matches --p, --op or --textc, or is a short flag containing O, P or f.
Why

It changes how git grep behaves when Claude runs it on a Mac, so its results do not depend on your locale. You will not see the wrapper itself, only its effect.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreemacOS: Changed git grep in most commands that Claude runs to use the C locale, to avoid a reported memory leak in macOS's regex library on…

See this entry in the whole of v2.1.314 →

Feedback