Correctly handle escaped % symbols
This commit is contained in:
parent
50fe7d2083
commit
1411d260a4
|
@ -602,6 +602,10 @@ parse (char *text)
|
||||||
// Eat the trailing }
|
// Eat the trailing }
|
||||||
p++;
|
p++;
|
||||||
} else { // utf-8 -> ucs-2
|
} else { // utf-8 -> ucs-2
|
||||||
|
// Escaped % symbol, eat the first one
|
||||||
|
if (p[0] == '%' && p[1] == '%')
|
||||||
|
p++;
|
||||||
|
|
||||||
uint8_t *utf = (uint8_t *)p;
|
uint8_t *utf = (uint8_t *)p;
|
||||||
uint16_t ucs;
|
uint16_t ucs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user