bug-gawk
[Top][All Lists]
Advanced

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

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


From: Michael Klement
Subject: [bug-gawk] v4.1.3 (run on OSX 10.11.3): potential gsub() bug
Date: Thu, 28 Jan 2016 19:29:21 -0500

The following, which should return 'ht', crashes:

$ echo 'hät' | gawk '{ gsub(/[\x80-\xFF]/, ""); print }' 
gawk: cmd. line:1: fatal error: internal error
Abort trap: 6

Its inverse, which should return 'ä', does not:

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


Regards,

Michael

reply via email to

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