mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 09:08:38 +00:00
tools: d3d12_switches and d3d12_run_fps set errors=replace on stdout
tests/test_tool_stdout_encoding.py asks it of every tool. d3d12_run_fps.py came in with #2594 without it, which left that test red on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -252,4 +252,8 @@ def main(argv=None) -> int:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
|
||||
sys.stdout.reconfigure(errors="replace")
|
||||
except (AttributeError, ValueError, OSError):
|
||||
pass
|
||||
sys.exit(main())
|
||||
|
||||
@ -320,4 +320,8 @@ def main(argv=None):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
|
||||
sys.stdout.reconfigure(errors="replace")
|
||||
except (AttributeError, ValueError, OSError):
|
||||
pass
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user