Klaus Demo nginx / a49c693
Merging r4210: Fixed utf8 decode (ticket #25). Patch by Alexey Kuts. Igor Sysoev 10 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
12101210
12111211 u = **p;
12121212
1213 if (u > 0xf0) {
1213 if (u >= 0xf0) {
12141214
12151215 u &= 0x07;
12161216 valid = 0xffff;
12171217 len = 3;
12181218
1219 } else if (u > 0xe0) {
1219 } else if (u >= 0xe0) {
12201220
12211221 u &= 0x0f;
12221222 valid = 0x7ff;
12231223 len = 2;
12241224
1225 } else if (u > 0xc0) {
1225 } else if (u >= 0xc2) {
12261226
12271227 u &= 0x1f;
12281228 valid = 0x7f;