Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macOS: only set LANGUAGE for app bundle, do not inherit in termio env (…
…ghostty-org#6648) Fixes ghostty-org#6633 For macOS, we set LANGUAGE to the priority list of preferred languages for the app bundle, using the GNU gettext priority list format (colon separated list of language codes). This previously was inherited by the termio env. At first, this was by design, but this has inherent flaws. Namely, the priority list format is a GNU gettext specific format, and programs that use alternate gettext implementations (like musl or Python) do not understand it and actually do the wrong thing (not their fault!). This change removes the inheritance of LANGUAGE in the termio env. To make it extra safe, we only do set and unset LANGUAGE when we know we launch from an app bundle. That was always the desired behavior but this makes it more explicit.
- Loading branch information