mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
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>