f16_interp_probe: reconfigure stdout with errors="replace" (test_tool_stdout_encoding)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
whoalin1
2026-11-25 19:01:11 +02:00
parent 5657240e35
commit e4eed0218d

View File

@ -310,4 +310,8 @@ def main():
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())