diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 06:38:01 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 06:38:01 -0500 |
| commit | 89cf18645e8b254e9fe4d6882feb79f20487204e (patch) | |
| tree | 5c6fe79315d3509aac0a56eec158566049ade450 /tools/mem_diff.py | |
| parent | 48b8b5d11d0cec83f2237ec227a012121663010a (diff) | |
| parent | f698bf22067aa1e08c1b957d937cb32b2c3e6674 (diff) | |
Merge pull request #1428 from Dominik
Diffstat (limited to 'tools/mem_diff.py')
| -rw-r--r-- | tools/mem_diff.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mem_diff.py b/tools/mem_diff.py index a7d9d440a..2be12e8bd 100644 --- a/tools/mem_diff.py +++ b/tools/mem_diff.py | |||
| @@ -750,4 +750,8 @@ def main(argv=None): | |||
| 750 | 750 | ||
| 751 | 751 | ||
| 752 | if __name__ == "__main__": | 752 | if __name__ == "__main__": |
| 753 | try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode | ||
| 754 | sys.stdout.reconfigure(errors="replace") | ||
| 755 | except (AttributeError, ValueError, OSError): | ||
| 756 | pass | ||
| 753 | sys.exit(main()) | 757 | sys.exit(main()) |