summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-08-06 04:14:19 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-08-06 04:14:19 +0000
commitd7293e533b11c4b1d32619f77f97e1e17730faf8 (patch)
tree191564335535fe3d58ac4d3ea65524fab0de57dd /Build/source/texk/dvipdfm-x
parentf4d58a4046d13612c3cf88cb05b73f7fa026a2e6 (diff)
dvipdfm-x/dvi.c: improve a little
git-svn-id: svn://tug.org/texlive/trunk@38059 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r--Build/source/texk/dvipdfm-x/dvi.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvi.c b/Build/source/texk/dvipdfm-x/dvi.c
index 0a59502db54..89e865d8a7a 100644
--- a/Build/source/texk/dvipdfm-x/dvi.c
+++ b/Build/source/texk/dvipdfm-x/dvi.c
@@ -955,7 +955,11 @@ is_notdef_notzero (char *path)
p = kpse_var_value("SELFAUTOLOC");
if (p == NULL)
return ret;
+#if defined(_WIN32)
+ cmd = concatn ("\"", p, "/t1disasm.exe\" \"", path, "\"", NULL);
+#else
cmd = concat3 (p, "/t1disasm ", path);
+#endif
free (p);
f = popen (cmd, "r");
free (cmd);
@@ -964,7 +968,10 @@ is_notdef_notzero (char *path)
p = strstr (buf, "CharStrings");
if (p) {
fgets (buf, 2047, f);
- if (strncmp (buf, "/.notdef", 8) != 0)
+ p = buf;
+ while (*p == ' ' || *p == '\t')
+ p++;
+ if (strncmp (p, "/.notdef", 8) != 0)
ret = 1;
break;
}