mirror of
https://github.com/python/cpython
synced 2024-11-02 05:41:35 +00:00
9e4994d410
Python now gets the locale encoding with C code to initialize the encoding of standard streams like sys.stdout. Moreover, the encoding is now initialized to the Python codec name to get a normalized encoding name and to ensure that the codec is loaded. The change avoids importing _bootlocale and _locale modules at startup by default. When the PYTHONIOENCODING environment variable only contains an encoding, the error handler is now is now set explicitly to "strict". Rename also get_default_standard_stream_error_handler() to get_stdio_errors(). Reduce the buffer to format the "cpXXX" string (Windows locale encoding). |
||
---|---|---|
.. | ||
_freeze_importlib.c | ||
_testembed.c | ||
python.c | ||
README |
Source files for binary executables (as opposed to shared modules)