Merge pull request #2590 from aegish-zagi/fix/stdout-guard-four-programs

tools/scripts: the four leftover __main__ blocks set errors=replace on stdout
This commit is contained in:
DadaCap
2026-11-29 04:37:17 +01:00
committed by GitHub
4 changed files with 4 additions and 0 deletions

View File

@ -306,4 +306,5 @@ def main(argv=None):
if __name__ == "__main__":
sys.stdout.reconfigure(errors="replace")
sys.exit(main())

View File

@ -120,4 +120,5 @@ def main(argv=None) -> int:
if __name__ == "__main__":
sys.stdout.reconfigure(errors="replace")
sys.exit(main())

View File

@ -1375,4 +1375,5 @@ def main(argv):
if __name__ == "__main__":
sys.stdout.reconfigure(errors="replace")
main(sys.argv[1:])

View File

@ -653,4 +653,5 @@ def main(argv):
if __name__ == "__main__":
sys.stdout.reconfigure(errors="replace")
main(sys.argv[1:])