-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
getopts should use grapheme clusters for text alignment #5516
Comments
Nominating for milestone 5, production-ready |
just a bug, removing milestone/nomination. |
Visiting for triage, email from 2013-08-19 The grapheme-oriented solution is blocked on #7043. But we can at least put in the codepoint-oriented solution for the time being. |
…excrichton ...bytes. (removing previous note about eff-eye-ex'ing #5516 since it actually does not do so, it just gets us half-way.)
(updating description to reflect PR #8710.) |
With the advent of |
It's also possible that we want to get rid of |
Note that graphemes don't tell you the display width of text. There is a rudimentary codepoint-oriented width function in libunicode though. |
This issue has been moved to the getopts repo: rust-lang/getopts#7 |
remove FIXME(rust-lang#13101) since `assert_receiver_is_total_eq` stays. remove FIXME(rust-lang#19649) now that stability markers render. remove FIXME(rust-lang#13642) now the benchmarks were moved. remove FIXME(rust-lang#6220) now that floating points can be formatted. remove FIXME(rust-lang#18248) and write tests for `Rc<str>` and `Rc<[u8]>` remove reference to irelevent issues in FIXME(rust-lang#1697, rust-lang#2178...) update FIXME(rust-lang#5516) to point to getopts issue 7 update FIXME(rust-lang#7771) to point to RFC 628 update FIXME(rust-lang#19839) to point to issue 26925
Add a note to the beta sections of release.md changelog: none
Rollup of 5 pull requests Successful merges: - rust-lang#5408 (Downgrade match_bool to pedantic) - rust-lang#5505 (Avoid running cargo+internal lints when not enabled) - rust-lang#5516 (Add a note to the beta sections of release.md) - rust-lang#5517 (Deploy time travel) - rust-lang#5523 (Add lifetime test case for `new_ret_no_self`) Failed merges: r? @ghost changelog: rollup
It should at minimum align to number of codepoints (characters), (and now that PR #8710 has landed, it should be doing that minimum), but the only correct thing would be to align to grapheme clusters.
test case
current output:
Note that in addition to things failing to line up, it is also cutting off the end of the text for the brûlée case. That issue should also be fixed.
The text was updated successfully, but these errors were encountered: