diff --git a/tools/make_amplify_dxil.py b/tools/make_amplify_dxil.py index 8fa71cff06..0f38be9b1f 100644 --- a/tools/make_amplify_dxil.py +++ b/tools/make_amplify_dxil.py @@ -66,4 +66,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 main()