diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-17 22:49:25 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-17 22:49:25 +0000 |
commit | 974eb1e1790e6731602301d7e5dd28cbd1867889 (patch) | |
tree | 0e8ee61b15b3f26f00fa60ff37e2e3e14baddf38 /Python/pythonrun.c | |
parent | 32765cc90a223dc7c1434b716a9ee46e57a67f17 (diff) | |
download | cpython-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