1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #8185 from frendsick/fix/printf-hex-zero-padding

printf: Fix formatting hexadecimals with padding
This commit is contained in:
Dorian Péron 2025-06-15 00:42:56 +02:00 committed by GitHub
commit 625e5eeb09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 26 deletions

View file

@ -906,6 +906,10 @@ fn pad_unsigned_three() {
("%#.3x", "0x003"),
("%#.3X", "0X003"),
("%#.3o", "003"),
("%#05x", "0x003"),
("%#05X", "0X003"),
("%3x", " 3"),
("%3X", " 3"),
] {
new_ucmd!()
.args(&[format, "3"])