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