Allow trailing non-numeric chars in --unicodes

This commit is contained in:
David Corbett 2018-03-25 20:50:41 -04:00 committed by Behdad Esfahbod
parent a289aaff47
commit 8269791900
1 changed files with 3 additions and 1 deletions

View File

@ -340,8 +340,10 @@ parse_unicodes (const char *name G_GNUC_UNUSED,
while (s && *s) while (s && *s)
{ {
while (*s && strchr ("<+>{},;&#\\xXuUnNiI\n\t", *s)) while (*s && strchr ("<+>{},;&#\\xXuUnNiI\n\t\v\f\r ", *s))
s++; s++;
if (!*s)
break;
errno = 0; errno = 0;
hb_codepoint_t u = strtoul (s, &p, 16); hb_codepoint_t u = strtoul (s, &p, 16);