From 2ae0d898eb1d6279cc705307a459f920bc7c921e Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Tue, 5 Feb 2019 08:06:03 -0600 Subject: [PATCH] proton: Set LC_ALL to the host value if available --- proton | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proton b/proton index 00fe94ea..4d7f6657 100755 --- a/proton +++ b/proton @@ -158,6 +158,14 @@ with dist_lock: env = dict(os.environ) dlloverrides = {} +if "HOST_LC_ALL" in env and len(env["HOST_LC_ALL"]) > 0: + #steam sets LC_ALL=C to help some games, but Wine requires the real value + #in order to do path conversion between win32 and host. steam sets + #HOST_LC_ALL to allow us to use the real value. + env["LC_ALL"] = env["HOST_LC_ALL"] +else: + env.pop("LC_ALL", "") + #for performance, logging is disabled by default; override with user_settings.py env["DXVK_LOG_LEVEL"] = "none" env["WINEDEBUG"] = "-all"