summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-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);