Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix KeyError in wcwidth-browser.py for 'c'ombining #106

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

jquast
Copy link
Owner

@jquast jquast commented Dec 1, 2023

Resolve KeyError when launching wcwidth-browser.py
with default unicode_version of 'auto', then pressing
'c' (for combining characters)::

  File "/Users/jq/Code/wcwidth/bin/wcwidth-browser.py", line 120, in __init__
    for (begin, end) in ZERO_WIDTH[unicode_version]:
                        ~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'auto'

Resolve KeyError when launching wcwidth-browser.py
with default unicode_version of 'auto', then pressing
'c' (for combining characters)::

      File "/Users/jq/Code/wcwidth/bin/wcwidth-browser.py", line 120, in __init__
        for (begin, end) in ZERO_WIDTH[unicode_version]:
                            ~~~~~~~~~~^^^^^^^^^^^^^^^^^
    KeyError: 'auto'
@jquast jquast changed the title Fix KeyError in bin/wcwidth-browser for combining Fix KeyError in wcwidth-browser.py for 'c'ombining Dec 1, 2023
@jquast jquast merged commit 3a9f471 into master Dec 1, 2023
39 of 40 checks passed
@jquast jquast deleted the smallfix-zerowidth-browser branch December 1, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants