SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 271 Python

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).
V
Victor Stinner committed
0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da
Parent: 6961bd6