summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-17 22:49:25 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-17 22:49:25 +0000
commit974eb1e1790e6731602301d7e5dd28cbd1867889 (patch)
tree0e8ee61b15b3f26f00fa60ff37e2e3e14baddf38 /Python/pythonrun.c
parent32765cc90a223dc7c1434b716a9ee46e57a67f17 (diff)
downloadcpython-974eb1e1790e6731602301d7e5dd28cbd1867889.tar.gz
libpython.py: py-bt commands escape unencodable characters
Encode unicode strings to the terminal encoding with backslashreplace error (as Python does for sys.stderr) before writing them to sys.stdout. It fixes UnicodeEncodeError on writing non-ascii characters in an ascii terminal (C locale: ASCII encoding).
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions