fix [#32350] F11 play animation crash when UI language is not "Default"

this is a bug in boost 1.46, can remove this env var override when this version of boost is no longer supported.
This commit is contained in:
Campbell Barton
2012-09-12 08:06:06 +00:00
parent 9a07bd78fc
commit 7b15620da0

View File

@@ -146,8 +146,14 @@ class PlayRenderedAnim(Operator):
# launch it
print("Executing command:\n %r" % " ".join(cmd))
# workaround for boost 1.46, can be eventually removed. bug: [#32350]
env_copy = os.environ.copy()
if preset == 'INTERNAL':
env_copy["LC_ALL"] = "C"
# end workaround
try:
subprocess.Popen(cmd)
subprocess.Popen(cmd, env=env_copy)
except Exception as e:
self.report({'ERROR'},
"Couldn't run external animation player with command "