mirror of
https://github.com/python/cpython
synced 2026-10-30 08:11:56 +03:00
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
|
||
|---|---|---|
| .. | ||
| libpython.py | ||