Files
tty7/crates
l0ng-aiandl0ng-ai cbe951efd2 fix(pane): the macOS locale fallback must set LANG, not LC_CTYPE (#280)
When a pane inherits no locale at all — the usual case for a GUI-launched
process on macOS — we derive an installed UTF-8 locale and inject it. But
we injected it as LC_CTYPE, which backs only character handling. Collation,
time and numbers stayed at C, and a shell that asks setlocale(cat, "") per
category finds no variable for the rest: bash warns

  setlocale: LC_COLLATE: cannot change locale ()

once per category on every launch. zsh and fish swallow the failure, so
they merely look fine while being just as half-configured.

LANG backs every category and still loses to any LC_* the user's own rc
files set afterwards, which is what a fallback should do. LC_ALL would also
cover everything but would override those.

Co-authored-by: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com>
2026-08-02 12:11:27 +08:00
..