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:
drh
2013-01-04 14:06:24 +00:00
parent 26de1e9956
commit 6578dd67fa
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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;
}