[Bug 12506] printf in awk fails to print zeros

bugzilla at busybox.net bugzilla at busybox.net
Sun Jan 26 17:31:02 UTC 2020


https://bugs.busybox.net/show_bug.cgi?id=12506

--- Comment #5 from wolf+busybox at wolfsden.cz ---
(In reply to Yuri from comment #4)

> Interesting. BSD awk also claims to be POSIX compliant:

POSIX (on awk) just states that when printf should print \000, the behaviour is
undefined. So both implementation's are compliant.

> But I would favor practicality over technical standard compliance.

Sure, why not. At least for printf it is very easy to resolve. sprintf would
require larger changes. And it could be confusing for printf to allow \000 and
sprintf to not allow it.

I'm curious what conclusion will busybox people reach regarding this one.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list