| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 43970bb commit ab0ac86
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -460,9 +460,9 @@ void FUnrealEnginePythonModule::StartupModule() | |||
| 460 | 460 | // Restore stdio state after Py_Initialize set it to O_BINARY, otherwise | |
| 461 | 461 | // everything that the engine will output is going to be encoded in UTF-16. | |
| 462 | 462 | // The behaviour is described here: https://bugs.python.org/issue16587 | |
| 463 | - _setmode(fileno(stdin), O_TEXT); | ||
| 464 | - _setmode(fileno(stdout), O_TEXT); | ||
| 465 | - _setmode(fileno(stderr), O_TEXT); | ||
| 463 | + _setmode(_fileno(stdin), O_TEXT); | ||
| 464 | + _setmode(_fileno(stdout), O_TEXT); | ||
| 465 | + _setmode(_fileno(stderr), O_TEXT); | ||
| 466 | 466 | ||
| 467 | 467 | // Also restore the user-requested UTF-8 flag if relevant (behaviour copied | |
| 468 | 468 | // from LaunchEngineLoop.cpp). | |
| Back | FazBrowse Home | New Git URL |
0 commit comments