NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39135: /usr/bin/awk: printf supports extra- (and broken) formatting rules



>Number:         39135
>Category:       bin
>Synopsis:       /usr/bin/awk: formatting issues in printf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 12 00:35:01 +0000 2008
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #0: 
Sun Jul 6 22:33:53 EEST 2008 
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
  0 ~>awk 'BEGIN {printf "%llu\n", 123}' 
  4398046511227
  0 ~>

Rules are there 

  http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html

  "The printf statement shall produce output based on a notation
  similar to the File Format Notation used to describe file formats in
  this volume of IEEE Std 1003.1-2001 (see the Base Definitions volume
  of IEEE Std 1003.1-2001, Chapter 5, File Format Notation).
  ...
  ...
  "

This PR is again based on OpenBSD gnats

   http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=5523

>Fix:

Unknown


Home | Main Index | Thread Index | Old Index