PATCH: [perl #120799] 5.18 regression with [:^ascii] and \x80-\xFF
authorKarl Williamson <public@khwilliamson.com>
Mon, 16 Dec 2013 17:59:36 +0000 (10:59 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 16 Dec 2013 18:25:03 +0000 (11:25 -0700)
commit2a79fb6688aa9f27b8ba0dff315f7716b555443e
tree0921a5e75d66ced4463dc975e9822aa6d4992992
parent0a60c50b0d38899c70f9f0ff158deeabef2e5071
PATCH: [perl #120799] 5.18 regression with [:^ascii] and \x80-\xFF

Posix classes generally match different sets of characters under /d
rules than otherwise.  This isn't true for [:ascii:], but the handling
for it is shared with the others, so it needs to use the same mechanism
to deal with that.  I forgot this in commit
bb9ee97444732c84b33c2f2432aa28e52e4651dc which created this regression.

Our tests for this only use regexes with a single element, and an
optimization added in 5.18 causes this bug to be bypassed.  These tests
should be enhanced to force both code paths, but not for this commit,
which should be suitable for a maintenance release.
regcomp.c
t/re/re_tests