Skip to content

[BUG] Combining Diacritical Marks Counted as Separate Characters #1097

@EnthusiasticTech

Description

@EnthusiasticTech

Project

cortex

Description

e + combining acute (é) counted as 2 chars for truncation/indexing.

Error Message

Debug Logs

System Information

$ bounty info
Bounty Challenge v0.1.0
OS: Linux 6.8.0-87-generic (Ubuntu 24.04.3 LTS)
CPU: Intel Core i7
RAM: 16 GB
Cortex Version: 0.1.1

Screenshots

No response

Steps to Reproduce

  1. cortex run "Café" | head -c 4

Expected Behavior

Grapheme cluster awareness (Café is 4 graphemes).

Actual Behavior

Codepoint counting; combining mark lost or split.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvalidValid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions