diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2008-06-20 16:40:49 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2008-06-20 16:40:49 +0000 |
commit | fceb2fe74a75c9263c068befef6143ab67478945 (patch) | |
tree | ebc8bcee48699b624e0b2e2b5fb6d3898b7f4203 /Build/source/texk/xdvipdfmx | |
parent | df20c76fc0277a911bc9b03e55b109a32f4f2482 (diff) |
fix backslashes in path (for miktex build)
git-svn-id: svn://tug.org/texlive/trunk@8886 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/spc_dvips.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/spc_dvips.c b/Build/source/texk/xdvipdfmx/src/spc_dvips.c index 435551079b3..940644103ed 100644 --- a/Build/source/texk/xdvipdfmx/src/spc_dvips.c +++ b/Build/source/texk/xdvipdfmx/src/spc_dvips.c @@ -958,6 +958,14 @@ int calculate_PS (char *string, int length, double *res1, double *res2) { fprintf(fp, "(%s) run\n", temporary_defs); fwrite(string, 1, length, fp); fclose(fp); +#ifdef MIKTEX + { + char *p; + for (p = formula; *p; p++) + if (*p == '\\') + *p = '/'; + } +#endif k = strlen(GS_CALCULATOR) + strlen(formula) + 2; cmd = malloc(k); strcpy(cmd, GS_CALCULATOR); |