[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [IC/Bugs] Uninterpreted byte ranges in REs
From: |
Andrew J. Schorr |
Subject: |
Re: [IC/Bugs] Uninterpreted byte ranges in REs |
Date: |
Fri, 31 Oct 2008 08:47:13 -0400 |
User-agent: |
Mutt/1.4.2.2i |
On Thu, Oct 30, 2008 at 05:24:39PM -0300, Jorge Stolfi wrote:
> The version of "gawk" that I am using now (GNU Awk 3.1.5)
> complains
>
> gawk: myscript:12: fatal: Invalid collation character: /[-- ]/
I just tested with 3.1.6, and there is no error message. If you
set the locale to C, it works properly.
> Here is a more meaningful example:
>
> echo "FOO @" | tr '@' '\203' | gawk '/[\177-\240]/{print;}'
bash-3.1$ gawk --version | head -1
GNU Awk 3.1.6
bash-3.1$ echo "FOO @" | tr '@' '\203' | gawk '/[\177-\240]/{print;}'
bash-3.1$ echo "FOO @" | tr '@' '\203' | LC_ALL=C gawk '/[\177-\240]/{print;}'
FOO �
So perhaps a simple upgrade will solve your problem?
Regards,
Andy