Skip to content

Unicode: .calculate_width raising on UTF-8 valid characters #174

@jlebray

Description

@jlebray

Description

Since the last release, when using IRB we noticed a TypeError was being raised instead of the result being printed. I traced back the issue to Redline::Unicode.calculate_width
The minimal code to reproduce the error is

Reline::Unicode.calculate_width("é")

Happened on both Ruby 2.6.6 & 2.7.1

Terminul Emulator

I'm using iTerm on Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions