Skip to content

U+2064 to U+206f are 0 width, but wcwidth returns 1 width #26

Closed

Description

@charlie-collard
base = ord('\u2064')
for i in range(12):
    print('A' + chr(base+i) + 'B')

Activity

  1. jquast commented on Jun 1, 2020

    @jquast
    Owner

    In iTerm2, these are all displayed as an empty space (1 cell wide), so wcwidth matches there.
    What terminal/s are you using that displays these as 0 wide? I will try some others given time

  2. tiptenbrink commented on Nov 9, 2021

    @tiptenbrink

    This is still an issue, see the linked issue above.

  3. jquast commented on Nov 15, 2021

    @jquast
    Owner

    I will do my best to address this in next release, this is the FOSS project I most wish to volunteer my time into, I just pushed my WIP branch https://github.com/jquast/wcwidth/compare/use-jinja?expand=1#diff-a7a564eab7d7101276d9c63a7bc6505f4dc79188333295b7a3e62636862ac367R163-R165 as I hope I can then better generate code for other languages using jinja2 and get these issues fixed more universally.

    But anyway I start a new job today, so that's life!

  4. added a commit that references this issue on Oct 30, 2023
  5. jquast commented on Oct 30, 2023

    @jquast
    Owner

    This is closed in today's release by #91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions