Only override LANG in default env if it was not set either in the original os env or via the env config directive

This commit is contained in:
Kovid Goyal 2022-08-30 19:17:53 +05:30
parent 89a0c04d19
commit 30e1b4680d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -169,7 +169,7 @@ def set_default_env(val: Optional[Dict[str, str]] = None) -> None:
def set_LANG_in_default_env(val: str) -> None:
default_env()['LANG'] = val
default_env().setdefault('LANG', val)
def openpty() -> Tuple[int, int]: