Skip to content

A multi-byte character in new PyREPL requires two backspaces to delete #142162

@grayjk

Description

@grayjk

Bug report

Bug description:

Bug report

To reproduce

  1. Open the new REPL
  2. Paste:
  3. Backspace to remove the pasted character

The paste-able string above is letter 'e' followed by \u0301. To create it use:

print('e\u0301')

The \u0301 is a combining mark with zero-width display length

Current behavior

Two backspaces are required to remove the displayed character

Expected behavior

One backspace is required to remove the displayed character

This is the behavior in the old REPL

CPython versions tested on:

3.14.0, 3.15.0a2

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions