GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Traceback colors are shifted when the line contains wide unicode characters · Issue #130273 · python/cpython

Traceback colors are shifted when the line contains wide unicode characters #130273

New issue
Copy link
New issue
Copy link
Closed
#142529
Closed
Traceback colors are shifted when the line contains wide unicode characters#130273
#142529
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltopic-unicodetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@HarryLHW
HarryLHW
opened on Feb 18, 2025
Issue body actions

Bug report

Bug description:

Image

In #28150, the carets' positions are compatible with wide unicode characters. I believe the colors should also be compatible.

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Windows, macOS

Linked PRs

  • gh-130273: Fix incorrectly colored error locations when wide unicode characters exists #130277
  • gh-130273: Fix traceback color output with unicode characters #142529
  • gh-130273: Add pure Python implementation of unicodedata.iter_graphemes() #148218

Activity

  1. HarryLHW
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Feb 18, 2025
  2. shenxianpeng commented on Feb 18, 2025

    @shenxianpeng
    shenxianpeng
    on Feb 18, 2025
    Contributor
    More actions

    Not sure if this borderline case 啊哈 = 1/0####### is necessary. If use Unicode to replace Chinese characters, there is no color shift.

    Image

  3. encukou
    added
    topic-replRelated to the interactive shellRelated to the interactive shell
    topic-unicode
    on Feb 19, 2025
  4. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Feb 21, 2025
  5. grayjk
    added a commit that references this issue on Dec 10, 2025

    Fix traceback color output with unicode characters

    This issue will close once commit 72ffc53 is merged into the 'main' branch.
    72ffc53
  6. grayjk
    added a commit that references this issue on Jan 28, 2026

    Fix traceback color output with unicode characters

    This issue will close once commit 306a690 is merged into the 'main' branch.
    306a690
  7. ambv
    closed this as completedin #142529on Apr 7, 2026
  8. ambv
    added a commit that references this issue on Apr 7, 2026

    gh-130273: Fix traceback color output with unicode characters (GH-142529

    dfeb160
  9. ljfp
    added a commit that references this issue on Apr 25, 2026

    pythongh-130273: Fix traceback color output with unicode characters (p…

    9e263c6
  10. StanFromIreland
    marked Pasting zero-width characters into PyREPL results in incorrect cursor position #139246 as a duplicate of this issue on May 9, 2026
  11. StanFromIreland
    unmarked Pasting zero-width characters into PyREPL results in incorrect cursor position #139246 as a duplicate of this issue on May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltopic-unicodetype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.