Package: mawk
Version: 1.3.3-11
Severity: normal

[Sorry if this is a duplicate.  I'm not sure whether my first attempt
got through.]

The printf %x conversion is supposed to treat its argument as an
unsigned int (see printf(3)).  But look at what mawk does:

$ mawk 'END { printf("%x %x\n", 2e9, 3e9) }' < /dev/null
77359400 7fffffff

Compare that to gawk:

$ gawk 'END { printf("%x %x\n", 2e9, 3e9) }' < /dev/null
77359400 b2d05e00

The range of an unsigned int on 32-bit platforms goes up to ffffffff,
not 7fffffff.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (700, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages mawk depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to