regcomp.c: Don't prefix posix props with Is
authorKarl Williamson <public@khwilliamson.com>
Thu, 27 Oct 2011 16:31:02 +0000 (10:31 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 27 Oct 2011 16:51:26 +0000 (10:51 -0600)
When confronted with something like [[:alpha:]], regcomp.c adds
IsPosixAlpha to the list of properties for code points above 255 to
match against when executing the pattern.  The 'Is' is extraneous, and
future commits will not want it.

regcomp.c

index 01334f9..0202be8 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -10307,7 +10307,7 @@ parseit:
                }
                if (what && ! (AT_LEAST_ASCII_RESTRICTED)) {
                    /* Strings such as "+utf8::isWord\n" */
-                   Perl_sv_catpvf(aTHX_ listsv, "%cutf8::Is%s\n", yesno, what);
+                   Perl_sv_catpvf(aTHX_ listsv, "%cutf8::%s\n", yesno, what);
                }
 
                continue;