regex: Fix locale regression
authorKarl Williamson <public@khwilliamson.com>
Fri, 18 Mar 2011 14:36:17 +0000 (08:36 -0600)
committerKarl Williamson <public@khwilliamson.com>
Fri, 18 Mar 2011 15:18:00 +0000 (09:18 -0600)
commitdd58aee1a749e6188a04cac2e4ba58a7004c1ec1
tree49bd56e35c794fe000447b3aff2d9d0a6ee3dc11
parentfff7535cca3d7faa5b59aa82de74bd71e938ea92
regex: Fix locale regression

Things like \S have not been accessible to the synthetic start class
under locale matching rules.  They have been placed there, but the
start class didn't know they were there.

This patch sets ANYOF_CLASS in initializing the synthetic start class
so that downstream code knows it is a charclass_class, and removes
the code that partially allowed this bit to be shared, and which isn't
needed in 5.14, and more thought would have to go into doing it than
was reflected in the code.

I can't come up with a test case that would verify that this works,
because of general locale testing issues, except it looked at a dump of
the generated regex synthetic start class, but the dump isn't the same
thing as the real behavior, and using one is also subject to breakage if
the regex code changes in the slightest.
regcomp.c
regcomp.h