PythonScriptPlugin sets std output mode to _O_BINARY but fails to restore it to the previous state afterwards because cached StdOutMode is already _0_TEXT, hence _setmode returns -1.
See PythonScriptPlugin.cpp line 823.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-177202 in the post.
|Component||UE - Editor - Framework - Python|
|Created||Feb 15, 2023|
|Updated||Apr 28, 2023|