Package: gawk Version: 3.1.5 Severity: normal The following programs print "b 2", but correct would be "b 1".
The "index" statement has no effect but it triggers the bug.
The LANG setting is also necessary to trigger the bug.
#!/bin/sh
export LANG="de_DE.UTF-8"
gawk '
BEGIN {
s = "ab"
index(s, "b")
sub("a", "", s)
print s " " length(s)
}'
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

