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

Implement SI prefixes R and Q #5357

Merged
merged 4 commits into from
Oct 18, 2023

Conversation

zhitkoff
Copy link
Contributor

@zhitkoff zhitkoff commented Oct 5, 2023

Implementing support for Ronna (R) and Quetta (Q) SI prefixes

Fixes #5334

Copy link
Member

@tertsdiepraam tertsdiepraam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! I have some small suggestions but I think most of it is fine!

Comment on lines 221 to 222
/// /// GNU lib/coreutils include similar functionality
/// and GNU test suite checks this behavior for some utils
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which ones do this? This feels like something unrelated to adding R and Q and I'd like to consider it separately, because it can also happen for Y for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specifically split does this and their lib includes function in support of that (i.e. return long int max on overflow if I recall correctly). This comment is actually from code that was already there for u64 variant - just duplicated it for u128 version of that

src/uucore/src/lib/parser/parse_size.rs Show resolved Hide resolved
@zhitkoff zhitkoff marked this pull request as ready for review October 5, 2023 22:45
@zhitkoff zhitkoff force-pushed the issue5334-uucore-parse-r-q branch 4 times, most recently from a562933 to 7ee3b58 Compare October 16, 2023 20:03
@zhitkoff
Copy link
Contributor Author

rebased a few more times

@zhitkoff
Copy link
Contributor Author

@sylvestre could you please help with merging this one since it looks like @tertsdiepraam is traveling?

@sylvestre
Copy link
Sponsor Contributor

yeah, great work. thanks

@sylvestre sylvestre merged commit 4573eb6 into uutils:main Oct 18, 2023
43 of 45 checks passed
@zhitkoff zhitkoff deleted the issue5334-uucore-parse-r-q branch November 18, 2023 16:37
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.

Support for Ronna (R) and Quetta (Q) SI prefixes
3 participants