bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Gawk - problem with hexadecimal numbers


From: Jürgen Kahrs
Subject: Re: Gawk - problem with hexadecimal numbers
Date: Fri, 17 Feb 2006 18:34:54 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921

Aharon Robbins wrote:

> Greetings. I cannot reproduce this under Fedora Core 2 with either
> gawk 3.1.4 or 3.1.5. I get the correct answer of 14.

I can reproduce the problem with 3.1.4 on a SuSE 9.3.

> Did you compile this yourself from sources? If not, you might
> try that with the current version.

Locale seems to be no issue.
I tried with C and with de_DE.UTF-8.

locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

# with 3.1.4 from SuSE 9.3
echo 0xe | gawk '{print strtonum($1)}'
0

# with 3.1.5 from XMLgawk project in the same locale
echo 0xe | ./gawk '{print strtonum($1)}'
14




reply via email to

[Prev in Thread] Current Thread [Next in Thread]