While writing some awk code I was using the --lint option for gawk 4.1.0. To my surprise I get a warning
warning: range of the form `[o-b]' is locale dependent
but my code has only a foo-bar outside of a character class. Simplified example:
{ match($2, /^uid=([^,]+),dc=foo-bar$/, m) } Also I think gawk 4.2.1 does no longer output that warning, so is it a bug in gawk?
awkprogram, right?awk --lint 'BEGIN{ match("foo", /^uid=([^,]+),dc=foo-bar$/, m) }'if indeed that reproduces the problem. With just the match() call you provided we have to guess if you maybe weren't quoting the script properly or calling it from some other tool (e.g. python) or had some other line of code that was the actual problem or anything else.