[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gawk] Possible Bug
From: |
Stepan Kasal |
Subject: |
Re: [gawk] Possible Bug |
Date: |
Mon, 15 Aug 2005 12:21:04 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Fri, Aug 12, 2005 at 08:31:34PM -0500, address@hidden wrote:
> CYGWIN port is 3.1.4. [...]
> gawk '{gsub(/[\x00-\x1f\x7e-\xff]/,"*");print}' x.x
> -|gawk: fatal: Invalid range end: /[/
I wasn't able to reproduce the problem on my GNU/Linux.
Perhaps this is a locale issue, could you try
LC_ALL=C gawk '{gsub(/[\x00-\x1f\x7e-\xff]/,"*");print}' x.x
?
Another question: does the following end with the same error?
gawk '/[\x00-\x1f\x7e-\xff]/' x.x
And what about this
gawk '{gsub("[\x00-\x1f\x7e-\xff]","*");print}' x.x
(quotes instead of slashes)?
Arnold has just released gawk 3.1.5, and it's already available on cygwin
site; could you please try this?
I'm just guessing here, but perhaps your answers to the above questions
will help Arnold to identify the problem.
A lot has happened since 1997, when 3.0.3 was released.
In particular, the regex engine was replaced by a totally new code.
HTH,
Stepan
- Possible Bug, Phillip . Long, 2005/08/13
- Re: [gawk] Possible Bug,
Stepan Kasal <=