[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error: Invalid range end:
From: |
arnold |
Subject: |
Re: error: Invalid range end: |
Date: |
Thu, 09 Jan 2020 08:31:48 -0700 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
"Jannick" <address@hidden> wrote:
> On Thu, 09 Jan 2020 07:17:43 -0700, address@hidden wrote:
> > The regexp would not compile, so gawk prints a fatal error message and
> > exits. The error is invalid range.
>
> It appears to be a locale issue where a collation character error is
> possible, too:
>
> $ locale -u
> de_DE
> $ gawk --version | head -n 1
> GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
> $ gawk '/[\xC0-\xFF]/' in.txt
> gawk: cmd. line:1: error: Invalid collation character: /[□-□]/
> $ LC_ALL=C gawk '/[\xC0-\xFF]/' in.txt
>
>
Except that gawk is supposed to be using Rational Range Interpretation...
Arnold