We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43970bb + ab0ac86 commit 078908eCopy full SHA for 078908e
Source/UnrealEnginePython/Private/UnrealEnginePython.cpp
@@ -460,9 +460,9 @@ void FUnrealEnginePythonModule::StartupModule()
460
// Restore stdio state after Py_Initialize set it to O_BINARY, otherwise
461
// everything that the engine will output is going to be encoded in UTF-16.
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);
+ _setmode(_fileno(stdin), O_TEXT);
+ _setmode(_fileno(stdout), O_TEXT);
+ _setmode(_fileno(stderr), O_TEXT);
466
467
// Also restore the user-requested UTF-8 flag if relevant (behaviour copied
468
// from LaunchEngineLoop.cpp).
0 commit comments