Files
cpython/Python
Serhiy Storchaka d9b739040c [3.13] gh-87587: Fix os.device_encoding() for any console on Windows (GH-155410) (GH-156597)
It was hard coded to map file descriptors 0, 1 and 2 to the console code
page, but a console can be opened as any file descriptor, and other
character devices, like NUL, are not consoles.

The file handle is now queried.  The UTF-8 code page is also now reported
as "utf-8" instead of "cp65001".

(cherry picked from commit b4aea41d1c)
2026-08-29 18:42:14 +00:00
..
2009-04-27 20:54:42 +00:00

Miscellaneous source files for the main Python shared library