Open edowson opened 5 years ago
I had a same issue on mac. How to solve this problem is to set an option in terminal. Uncheck "Set locale variables automatically".
this fixed it for me:
--- W:\UnrealProjects\pytest_422\bk\99\UnrealEnginePython\Source\UnrealEnginePython\Private\UnrealEnginePython.cpp
+++ W:\UnrealProjects\pytest_422\Plugins\UnrealEnginePython\Source\UnrealEnginePython\Private\UnrealEnginePython.cpp
@@ -47,6 +47,7 @@
#include "Android/AndroidApplication.h"
#endif
+#include <locale.h>
const char *UEPyUnicode_AsUTF8(PyObject *py_str)
{
@@ -532,6 +533,10 @@
// release the GIL
PyThreadState *UEPyGlobalState = PyEval_SaveThread();
+
+ setlocale(LC_ALL, "C");
+ const char* CurrentLocale = setlocale(LC_CTYPE, nullptr);
+ UE_LOG(LogPython, Log, TEXT("now locale [%s]"), CurrentLocale);
}
void FUnrealEnginePythonModule::ShutdownModule()
I get a series of LogAutomationTest errors while building the
UnrealEnginePython
plugin for UE4.22.2 and UE4.22.3.It appears when loading a default cpp project with the plugin installed.
It fails with an error when trying to build the derived data cache from the command line.
I have set the locale as follows in my
~/.bashrc
Here is a snippet of the errors. Is there any way to resolve this?