cpython/Tools/gdb
Serhiy Storchaka 5506734c99
[3.13] gh-154580: Fix python-gdb.py pretty-printing non-ASCII strings in non-UTF-8 locales (GH-154581) (GH-154637)
The gdb pretty-printer used locale.getpreferredencoding() to decide whether to
escape a character, but gdb writes its output in its host charset.  Use
gdb.host_charset() instead.  test_strings had the same problem.
(cherry picked from commit 6cb93bd039)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 16:45:50 +00:00
..
libpython.py [3.13] gh-154580: Fix python-gdb.py pretty-printing non-ASCII strings in non-UTF-8 locales (GH-154581) (GH-154637) 2026-07-24 16:45:50 +00:00