regcomp.c: RT#77414. Initialize flag
authorKarl Williamson <public@khwilliamson.com>
Sun, 20 Mar 2011 00:41:48 +0000 (18:41 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 20 Mar 2011 01:01:37 +0000 (19:01 -0600)
commit05dd4d395c6a14aeb23dbc107af579969b186caf
tree023409b902d699170fb759a250c881ddceb845d5
parent9d7a1e6315426819da0d6af6dc79fde72e9c8c08
regcomp.c: RT#77414. Initialize flag

As indicated in the comments, this flag needs to be initialized to
1 or the optimizer loses the fact that something could match a
character that isn't in utf8 and whose bitmap bit isn't set.  This
happens, for example, with Unicode properties.

Thus this fixes #77414.  That ticket had been closed recently because
it went away due to another patch that caused the optimizer to be
bypassed in the cases tested for.  But when that patch was reverted,
and cleaned-up, this bug came back.  Now, I believe I have found the
root cause.
regcomp.c
t/re/pat.t