Skip to content

od: doesn't support output format specifier "fL" #3096

Description

@jfinkels

The uutils version of od does not support the fL output format specifier. It means "format the output as a floating point number, using sizeof(long double) bytes to interpret each number in the input". For more information, see: https://www.gnu.org/software/coreutils/manual/html_node/od-invocation.html

GNU od:

$ : | od -tfL
0000000

uutils od:

$ : | ./target/debug/od -tfL
./target/debug/od: unexpected char 'L' in format specification 'fL'

Here's the relevant part of the code:

// FormatTypeCategory::Float, 'L' => *byte_size = 16, // TODO support f128

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions