From 74b4f4e5a35f07bc17092e8c9ee01ba77cc8175d Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 13 Dec 2010 20:21:22 +0200 Subject: Expand ranges before compiling the regexp. --- test/ChangeLog | 8 ++++++++ test/gsubtst5.ok | 1 - test/localenl.sh | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ChangeLog b/test/ChangeLog index c539fc24..99cc80fc 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,11 @@ +Mon Dec 13 13:54:56 2010 Arnold D. Robbins + + * localenl.sh: Use --posix option. + +Sun Dec 12 13:58:36 2010 Arnold D. Robbins + + * gsubtst5.ok: Adjust contents. + Tue Dec 7 22:31:51 2010 Arnold D. Robbins * Makefile.am (profile1, profile2): New tests. diff --git a/test/gsubtst5.ok b/test/gsubtst5.ok index 2119b6c6..b038c8af 100644 --- a/test/gsubtst5.ok +++ b/test/gsubtst5.ok @@ -1,2 +1 @@ -gawk: gsubtst5.awk:95: warning: range of the form `["-\]' is locale dependant ThisIsaTitleMyTitle diff --git a/test/localenl.sh b/test/localenl.sh index ec1ad31c..ca3ee64e 100755 --- a/test/localenl.sh +++ b/test/localenl.sh @@ -50,7 +50,7 @@ line7 line8 line9 EOF -$AWK ' +$AWK --posix ' BEGIN { RS="\0"; } { if (match($0, /\n[^2\n]*2/)) { got2=1; } else { print "no match 2"; } -- cgit v1.2.3