diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-17 22:49:25 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-17 22:49:25 (GMT) |
| commit | 0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da (patch) | |
| tree | 0aa8ac3b1b77729645b770c27b205f030a033d91 /Python/pythonrun.c | |
| parent | 6961bd690e617b963a55ce86a640eedb590bc23b (diff) | |
| download | cpython-0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da.zip cpython-0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da.tar.gz cpython-0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da.tar.bz2 | |
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
