Commit 14deb53
committed
Restore Windows stdio flags after Python initialisation.
Python forcibly sets the file mode for stdin, stdout, and stderr to O_BINARY
for several reasons. This causes wprintf() to output UTF-16 instead of going
through the proper text conversion. As a result, standard output was all
messed up after the module was initialised.
The Python developers do not really consider this a bug because they are not
familiar with wprintf() (https://bugs.python.org/issue16587). Unfortunately
this is what UE4 uses for logging.1 parent b279548 commit 14deb53
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
447 | 452 | | |
448 | 453 | | |
449 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
450 | 471 | | |
451 | 472 | | |
452 | 473 | | |
| |||
0 commit comments