This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c382b33
)
regcomp.c: Don't prefix posix props with Is
author
Karl Williamson
<public@khwilliamson.com>
Thu, 27 Oct 2011 16:31:02 +0000
(10:31 -0600)
committer
Karl 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
patch
|
blob
|
blame
|
history
diff --git
a/regcomp.c
b/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;