proton: Set LC_ALL to the host value if available

This commit is contained in:
Andrew Eikum 2019-02-05 08:06:03 -06:00
parent f45c66000d
commit 2ae0d898eb

8
proton
View file

@ -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"