Skip to content

od: default -t f to double precision#11396

Open
can1357 wants to merge 1 commit intouutils:mainfrom
can1357:od-default-t-f-to-double-precision
Open

od: default -t f to double precision#11396
can1357 wants to merge 1 commit intouutils:mainfrom
can1357:od-default-t-f-to-double-precision

Conversation

@can1357
Copy link

@can1357 can1357 commented Mar 18, 2026

uutils od -t f defaults to 4-byte floats when no explicit size is provided. GNU od defaults -t f to sizeof(double) (8 bytes), so values and grouping diverge.

Reproduction Steps

printf '\x00\x00\x80\x3f\x00\x00\x00\x40' | od -An -t f
# Expected (GNU):        2.000000473111868
# Actual (uutils):       1.0000000       2.0000000

Impact

Pipelines that parse od -t f output misinterpret binary data under uutils because element width and decoded values differ from GNU semantics.

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.

1 participant