delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/28/22:27:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: Gawk printf problem with negative numbers
Date: Tue, 28 Oct 2003 19:24:43 -0800
Lines: 17
Message-ID: <bnnbtt$rs7$1@sea.gmane.org>
References: <T65902760dfc0a87563404 AT sausmailstop DOT sciatl DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (Compact)
X-Accept-Language: en-us, en
In-Reply-To: <T65902760dfc0a87563404@sausmailstop.sciatl.com>

kenneth DOT shaffer AT sciatl DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019