Commit 8905ab0
committed
Fix Unicode encoding issue on Windows stdout
- Add UTF-8 encoding support for stdout output on Windows
- Use sys.stdout.reconfigure() for Python 3.7+ or TextIOWrapper fallback
- Fixes UnicodeEncodeError when outputting special characters to stdout
- Resolves failing Windows CI tests for test_stdout_output_with_special_characters1 parent 6e17b4a commit 8905ab0
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
| |||
0 commit comments