Skip to content

Conversation

@ChrisDryden
Copy link
Collaborator

@ChrisDryden ChrisDryden commented Jan 7, 2026

I believe the reason this option doesn't exist yet is that it was added fairly recently. This option allows you to customize the separator between the unit and the number. Of all of the remaining 72 failing GNU numfmt tests this represents 12 of the failing tests.

The logic for the output is fairly straightforward to just pass it onto the transform_to function and adding the additional formatting option. This feature is still not fully implemented and it has 4 associated failures that relate to parsing when being provided the unit-seperator. I was hoping to split the implementation of the option and the transform to from that PR since theres other issues causing failing tests with the parser, so I was hoping to keep the two fixes separate.

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)

pub delimiter: Option<String>,
pub round: RoundMethod,
pub suffix: Option<String>,
pub unit_separator: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

This probably should be an OsString as GNU numfmt allows non-UTF8 values. But I think it's something for a future PR.

@cakebaker cakebaker merged commit 6d6b050 into uutils:main Jan 8, 2026
131 of 133 checks passed
@cakebaker
Copy link
Contributor

Thanks!

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