Fix the zInit[] optimization of test_regexp.c when the initial string
contains 3-byte UTF8 characters. FossilOrigin-Name: 357231ec970adb5dfcdaf9665499141004cb1198
This commit is contained in:
+1
-1
@@ -652,7 +652,7 @@ const char *re_compile(ReCompiled **ppRe, const char *zIn, int noCase){
|
||||
}else if( x<=0xffff ){
|
||||
pRe->zInit[j++] = 0xd0 | (x>>12);
|
||||
pRe->zInit[j++] = 0x80 | ((x>>6)&0x3f);
|
||||
pRe->zInit[j++] = 0x80 | ((x>>6)&0x3f);
|
||||
pRe->zInit[j++] = 0x80 | (0x3f);
|
||||
}else{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user