bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Fw: Re: v4.1.3 (run on OSX 10.11.3): potential gsub() bug


From: Hermann Peifer
Subject: [bug-gawk] Fw: Re: v4.1.3 (run on OSX 10.11.3): potential gsub() bug
Date: Fri, 29 Jan 2016 11:15:18 +0100

> $
> $ echo 'hät' | gawk '{ gsub(/[\x80-\xFF]/, ""); print }'
> gawk: cmd. line:1: error: Invalid collation character: /[�-�]/
> $
> $ echo 'hät' | LC_ALL=C gawk '{ gsub(/[^\x80-\xFF]/, ""); print }'
> ä
> 

About my second example: what I actually meant to post was that the original 
line works fine in C locale:

$ echo 'hät' | LC_ALL=C gawk '{ gsub(/[\x80-\xFF]/, ""); print }'
ht


Hermann



reply via email to

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