Fix monster performance benchmark run on Windows
The scene contains some interesting names, which requires to be written as utf-8. And on Windows file descriptor is not guaranteed to be using utf-8. Or, will error out if the invalid utf-8 sequence is written. This change makes it so running benchmarks on windows it fully successful. Pull Request: https://projects.blender.org/blender/blender/pulls/108982
This commit is contained in:
committed by
Sergey Sharybin
parent
ea3cbf4942
commit
fc440c4fa0
@@ -175,7 +175,7 @@ class TestEnvironment:
|
||||
if self.log_file:
|
||||
if not self.log_file.exists():
|
||||
self.log_file.parent.mkdir(parents=True, exist_ok=True)
|
||||
f = open(self.log_file, 'a')
|
||||
f = open(self.log_file, 'a', encoding='utf-8', errors='ignore')
|
||||
f.write('\n' + ' '.join([str(arg) for arg in args]) + '\n\n')
|
||||
|
||||
env = os.environ
|
||||
|
||||
Reference in New Issue
Block a user