Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

od: Add support for -tfH and -tfB#8354

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
karanabe wants to merge4 commits intouutils:main
base:main
Choose a base branch
Loading
fromkaranabe:main

Conversation

karanabe
Copy link
Contributor

Recognize the fH/fB specifiers, convert 16-bit floats to f64, and format them with the correct field widths to match GNU od.

Fixes#8345

@github-actionsGitHub Actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@karanabe
Copy link
ContributorAuthor

CI’s cspell check flagged “bfloat” as a misspelling—may I add “bfloat” to the cspell workspace.wordlist at function names section?

@cakebaker
Copy link
Contributor

Yes, that sounds good. Alternatively, you could also add aspell-checker:ignore entry to the top of the files (many files already have such entries).

@github-actionsGitHub Actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@karanabe
Copy link
ContributorAuthor

Thanks for the suggestion! I’ve added the spell-checker:ignore bfloat entry at the top of the files and CI is now passing.

@github-actionsGitHub Actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@karanabe
Copy link
ContributorAuthor

There are no real code changes here—I just cleaned up the merge conflicts that occurred on the identical lines.

Comment on lines 300 to 309
Some('B') => {
byte_size = 2;
float_variant = Some('B');
ch = chars.next();
}
Some('H') => {
byte_size = 2;
float_variant = Some('H');
ch = chars.next();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can factorize here

Suggested change
Some('B') =>{
byte_size =2;
float_variant =Some('B');
ch = chars.next();
}
Some('H') =>{
byte_size =2;
float_variant =Some('H');
ch = chars.next();
}
Some(var @'B' |'H') =>{
byte_size =2;
float_variant =Some(var);
ch = chars.next();
}

karanabe reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks for the suggestion! I’ve consolidated the two Some('B') and Some('H') into a single.

@github-actionsGitHub Actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@RenjiSannRenjiSannRenjiSann left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

od: doesn't support output format specifiersfH andfB
3 participants
@karanabe@cakebaker@RenjiSann

[8]ページ先頭

©2009-2025 Movatter.jp