提交 82697919 编写于 作者: D David Corbett 提交者: Behdad Esfahbod

Allow trailing non-numeric chars in --unicodes

上级 a289aaff
...@@ -340,8 +340,10 @@ parse_unicodes (const char *name G_GNUC_UNUSED, ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册