Skip to content

Printf: Alternative hex fails with a 0 value #5810

@spineki

Description

@spineki

Summary

Printf crashes when using alternative hex with a 0 value.

Code

GNU:
> printf %#x 0
0

uutils: 
> cargo run printf %#x 0
printf: warning: '0': expected a numeric value
0x0error: process didn't exit successfully: `target\debug\coreutils.exe printf %#x 0` (exit code: 1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions