-
Notifications
You must be signed in to change notification settings - Fork 78
Fix invalid cell width calculation with modern unicode-width versions #170
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
base: master
Are you sure you want to change the base?
Fix invalid cell width calculation with modern unicode-width versions #170
Conversation
|
Thanks! Could wee add a quick test so we ensure it doesn't break anymore after? |
|
Done |
|
@pinkforest, could you please merge the PR and bump version? |
| lazy_static = "1.4" | ||
| is-terminal = "0.4" | ||
| encode_unicode = "1.0" | ||
| strip-ansi-escapes = "0.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know the MSRV of this and it's dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but it's 1.5 years old, so it's definitely small enough to not bother.
Summary: The unicode-width crate was pinned to a specific version in D64960800 to solve an issue with prettytable-rs. The prettytable-rs crate has not been updated in a couple of years. I published a branch on GitHub that contains prettytable-rs 0.10.0 + a fix for the bug that lead to the pinning in phsym/prettytable-rs#170. Shipping this should enable unpinning unicode-width. I am interested in this, because it's blocking an import I am trying to do. Note: it looks like projects in the Rust ecosystem are moving to the comfy-table crate as a replacement for prettytable-rs. I might have a poke at this too. Reviewed By: dtolnay Differential Revision: D88012122 fbshipit-source-id: 26d1caa67472c45a1480471b0745087301c58b1c
Summary: The unicode-width crate was pinned to a specific version in D64960800 to solve an issue with prettytable-rs. The prettytable-rs crate has not been updated in a couple of years. I published a branch on GitHub that contains prettytable-rs 0.10.0 + a fix for the bug that lead to the pinning in phsym/prettytable-rs#170. Shipping this should enable unpinning unicode-width. I am interested in this, because it's blocking an import I am trying to do. Note: it looks like projects in the Rust ecosystem are moving to the comfy-table crate as a replacement for prettytable-rs. I might have a poke at this too. Reviewed By: dtolnay Differential Revision: D88012122 fbshipit-source-id: 26d1caa67472c45a1480471b0745087301c58b1c
Fixes #165