]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130273: Fix traceback color output with unicode characters (GH-142529)
authorgrayjk <grayjk@gmail.com>
Tue, 7 Apr 2026 13:05:23 +0000 (09:05 -0400)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2026 13:05:23 +0000 (15:05 +0200)
commitdfeb160bc35f0ba16800d07b85cb11598d1cd307
tree534c27b9b312583eb5bab9e86f36aa3a54e9d4f7
parentcf59bf76470f3d75ad47d80ffb8ce76b64b5e943
gh-130273: Fix traceback color output with unicode characters (GH-142529)

Account for the display width of Unicode characters so that colors and underlining in traceback output is correct.

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/_pyrepl/utils.py
Lib/test/test_traceback.py
Lib/traceback.py
Misc/NEWS.d/next/Library/2025-12-10-15-15-09.gh-issue-130273.iCfiY5.rst [new file with mode: 0644]