[Bug 229641] /usr/bin/printf (so also internal printf in sh) ignores width and precision in %b format

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 7 23:04:17 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229641

--- Comment #7 from commit-hook at freebsd.org ---
A commit references this bug:

Author: pfg
Date: Tue Aug  7 23:03:51 UTC 2018
New revision: 337440
URL: https://svnweb.freebsd.org/changeset/base/337440

Log:
  Fix printf(1) ignores width and precision in %b format.

  The precision with behavior is "unspecified" by POSIX (as of 2018), but
  most implementations seem to have taken it to be treated the same as for
  "s"; applied after the unescaping.
  Adopt the same treatment on our printf.

  PR:   229641
  Submitted by: Garrett D'Amore (illumos)

Changes:
  head/usr.bin/printf/printf.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list