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

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

Re: Bug report


From: Aharon Robbins
Subject: Re: Bug report
Date: Fri, 02 Dec 2005 12:02:19 +0200

Greetings.

I think this has become the #1 gawk FAQ.

The answer is that it's not a bug. It has to do with the locale you're
using.  If you set LC_ALL=C in your environment, gawk's behavior will
be what you expect.

Thanks,

Arnold

> From address@hidden  Fri Dec  2 11:58:01 2005
> Date: Fri, 02 Dec 2005 10:15:04 +0100
> From: Jochen Quick <address@hidden>
> Subject: Bug report
> To: address@hidden
>
> ------=_Part_81431_11288051.1133514904658
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline
>
>
> I'm running awk on Suse Linux 9.3. Is this a bug or a feature? /[D-W]/
> should be case sensitive and not include 'e', 'w' and everything in=
>  between..
> But if it is case insensitive, why isn't 'd' included then? Same goes for
> uppercase characters in lower case ranges. In case it is a bug, short
> cofirmation would be appreciated.
>
> address@hidden:~/downloads> echo "c" | awk  '/[D-W]/{print "XXX" $0 }'
> address@hidden:~/downloads> echo "d" | awk  '/[D-W]/{print "XXX" $0 }'
> address@hidden:~/downloads> echo "e" | awk  '/[D-W]/{print "XXX" $0 }'
> XXXe
> address@hidden:~/downloads> echo "w" | awk  '/[D-W]/{print "XXX" $0 }'
> XXXw
> address@hidden:~/downloads> echo "x" | awk  '/[D-W]/{print "XXX" $0 }'
>
> address@hidden:~/downloads> echo "C" | awk  '/[d-w]/{print "XXX" $0 }'
> address@hidden:~/downloads> echo "D" | awk  '/[d-w]/{print "XXX" $0 }'
> XXXD
> address@hidden:~/downloads> echo "V" | awk  '/[d-w]/{print "XXX" $0 }'
> XXXV
> address@hidden:~/downloads> echo "W" | awk  '/[d-w]/{print "XXX" $0 }'
> address@hidden:~/downloads> echo "X" | awk  '/[d-w]/{print "XXX" $0 }'
>
> address@hidden:~/downloads> awk --version
> GNU Awk 3.1.4
> Copyright (C) 1989, 1991-2003 Free Software Foundation.
> .
> .
> .




reply via email to

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