mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00

Py_Initialize() and Py_Main() cannot enable the C locale coercion (PEP 538) anymore: it is always disabled. It can now only be enabled by the Python program ("python3). test_embed: get_filesystem_encoding() doesn't have to set PYTHONUTF8 nor PYTHONCOERCECLOCALE, these variables are already set in the parent.
17 lines
274 B
C
17 lines
274 B
C
/* Minimal main program -- everything is loaded from the library */
|
|
|
|
#include "Python.h"
|
|
|
|
#ifdef MS_WINDOWS
|
|
int
|
|
wmain(int argc, wchar_t **argv)
|
|
{
|
|
return _Py_WindowsMain(argc, argv);
|
|
}
|
|
#else
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
return _Py_UnixMain(argc, argv);
|
|
}
|
|
#endif
|