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:
aca5303
)
Fix RT-70998: qq{\x{30ab}} =~ /\xab|\xa9/ produces warnings
origin/compile
author
Yves Orton
<demerphq@gmail.com>
Tue, 2 Nov 2010 10:29:18 +0000
(11:29 +0100)
committer
Yves Orton
<demerphq@gmail.com>
Tue, 2 Nov 2010 10:44:58 +0000
(11:44 +0100)
regexec.c
patch
|
blob
|
blame
|
history
diff --git
a/regexec.c
b/regexec.c
index
2c9b852
..
2e15b45
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-1780,10
+1780,16
@@
S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
PerlIO_printf( Perl_debug_log,
" Scanning for legal start char...\n");
}
- );
- while ( uc <= (U8*)last_start && !BITMAP_TEST(bitmap,*uc) ) {
- uc++;
- }
+ );
+ if (utf8_target) {
+ while ( uc <= (U8*)last_start && !BITMAP_TEST(bitmap,*uc) ) {
+ uc += UTF8SKIP(uc);
+ }
+ } else {
+ while ( uc <= (U8*)last_start && !BITMAP_TEST(bitmap,*uc) ) {
+ uc++;
+ }
+ }
s= (char *)uc;
}
if (uc >(U8*)last_start) break;