summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-03-30 04:04:58 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-03-30 04:04:58 +0000
commit33ca399833807365f38dfdc1c3ff6991de31061f (patch)
tree7e2758d19e4ef3fd9763e710851f30ee5cbfe42a /Build/source
parent32bc43e7741dabb4de08a2de6dcfd7b0de1786b8 (diff)
allow spaces in "CharSet". reported by Robert.
git-svn-id: svn://tug.org/texlive/trunk@50652 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog6
-rw-r--r--Build/source/texk/web2c/pdftexdir/epdf.c10
2 files changed, 15 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index 743e3cc45d0..fdefec3dfe5 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,9 @@
+2019-03-30 Akira Kakuto <kakuto@w32tex.org>
+
+ * epdf.c: Allow spaces in CharSet.
+ Reported by Robert:
+ https://tug.org/pipermail/pdftex/2019-March/009146.html
+
2019-03-21 Akira Kakuto <kakuto@w32tex.org>
* pdftoepdf-poppler0.75.0.cc: Support poppler-0.75.0.
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);