This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Gawk printf problem with negative numbers


kenneth.shaffer@sciatl.com wrote:

>> echo |gawk '{n = -1234; printf("0x%x\n",n+0)}'
> 0x-1234
>> gawk --version
> GNU Awk 3.1.3

Definitely a cygwin port problem. On linux, it does print 0xfffffb2e.
(At least, versions 3.1.0 and 3.1.1 on Linux do - I don't have the
latest version compiled on Linux).

In either case, the bug report belongs in the cygwin-apps mailing list,
not the cygwin list itself (which is concerned more with the cygwin
platform).
--
Shankar.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]