twoone3 <[email protected]> added the comment:

PyPreConfig cfg;
                PyPreConfig_InitPythonConfig(&cfg);
                cfg.utf8_mode = -1;
                PyStatus status = Py_PreInitialize(&cfg);
                if (PyStatus_Exception(status)) {
                        Py_ExitStatusException(status);
                }

I use this to test,there are no exceptions

----------

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43091>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to