Visitar URL original
unicodedata.normalize: dotless i + acute accent should give i with acute · Issue #93767 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250528170337/https://github.com/python/cpython/issues/93767
Skip to content

unicodedata.normalize: dotless i + acute accent should give i with acute #93767

Closed as not planned
@nschloe

Description

@nschloe
from unicodedata import normalize

normalize("NFC", "\N{LATIN SMALL LETTER DOTLESS I}\N{COMBINING ACUTE ACCENT}").encode("ascii", "namereplace")
b'\\N{LATIN SMALL LETTER DOTLESS I}\\N{COMBINING ACUTE ACCENT}'

when it should give

b'\\N{LATIN SMALL LETTER I WITH ACUTE}'

When providing a regular dotted i, it already works correctly:

normalize("NFC", "i\N{COMBINING ACUTE ACCENT}").encode("ascii", "namereplace")
b'\\N{LATIN SMALL LETTER I WITH ACUTE}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions