mirror of
https://github.com/python/cpython.git
synced 2026-06-27 21:33:21 -04:00
e514b4a279
The module-global screen_encoding stored a borrowed pointer to the encoding owned by the window returned by the first initscr() call. That window can be deallocated while unctrl() and ungetch(), which have no window of their own, still use the pointer to encode non-ASCII characters. Keep a private copy of the encoding instead. (cherry picked from commit551f8e16f8) (cherry picked from commit7b55e9a93e) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Source files for standard library extension modules, and former extension modules that are now builtin modules.