You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: LC_ALL forced to C.UTF-8 in codex CLI shell commands (unified exec) #9354
What terminal emulator and version are you using (if applicable)?
iTerm2
What issue are you seeing?
When running shell commands via codex-cli on macOS, LC_ALL is forcibly set to C.UTF-8 even if the user’s locale is different. Note that C.UTF-8 is not usually available on MacOS. This happens without user opt-in and affects command behavior that depends on locale. In particular it can lead to various commands printing warning messages. It appears to come from unified exec environment injection.
Steps to Reproduce
On macOS, run Codex CLI (TUI).
Enter prompt:
Run "env | egrep '^(LANG|LC_)'" and report the result
Observe output contains LC_ALL=C.UTF-8.
Expected Result:
LC_ALL should reflect the user’s environment (or be unset), unless explicitly configured by the user or the command.
Actual Result:
LC_ALL is always set to C.UTF-8.
Suspected Cause
Unified exec injects a fixed locale, including LC_ALL=C.UTF-8, for all unified exec processes.
Activity
fix(core): use platform-appropriate UTF-8 locale in unified exec
pusherofbrooms commentedon Feb 18, 2026
I'm running into this. I use nixpkgs provided bash. My locale output for a login shell is
This looks correct to me. Codex tells me that its related variables are set to:
So this seems to be set by codex.
My concern is that pollutes the context and adds unnecessary tokens.
sstklen commentedon Feb 24, 2026