From 33ca399833807365f38dfdc1c3ff6991de31061f Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 30 Mar 2019 04:04:58 +0000 Subject: allow spaces in "CharSet". reported by Robert. git-svn-id: svn://tug.org/texlive/trunk@50652 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/pdftexdir/epdf.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/web2c/pdftexdir/epdf.c') diff --git a/Build/source/texk/web2c/pdftexdir/epdf.c b/Build/source/texk/web2c/pdftexdir/epdf.c index 72df8c778c2..2192886b806 100644 --- a/Build/source/texk/web2c/pdftexdir/epdf.c +++ b/Build/source/texk/web2c/pdftexdir/epdf.c @@ -77,8 +77,16 @@ void epdf_mark_glyphs(fd_entry * fd, char *charset) if (charset == NULL) return; assert(fd != NULL); + while (*charset == ' ' || *charset == '\t') + charset++; for (s = charset + 1, q = charset + strlen(charset); s < q; s = p + 1) { - for (p = s; *p != '\0' && *p != '/'; p++); + for (p = s; *p != '\0' && *p != '/' && *p != ' ' && *p != '\t'; p++); + if (*p == ' ' || *p == '\t') { + *p = '\0'; + p++; + while (*p == ' ' || *p == '\t') + p++; + } *p = '\0'; if ((char *) avl_find(fd->gl_tree, s) == NULL) { glyph = xstrdup(s); -- cgit v1.2.3