diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2008-06-04 10:03:13 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2008-06-04 10:03:13 +0000 |
commit | 115f456baf2df09c5771b6b02564e37bb801a820 (patch) | |
tree | 045aa189611b12b90b650d474b1f2454bb45bf48 /Build | |
parent | 8008380b8dc416abcf48c3d98a75406f84f37c16 (diff) |
synch with xetex repo (no effect on TL builds)
git-svn-id: svn://tug.org/texlive/trunk@8548 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/pdfximage.c | 12 | ||||
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/spc_dvips.c | 24 |
2 files changed, 33 insertions, 3 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/pdfximage.c b/Build/source/texk/xdvipdfmx/src/pdfximage.c index a5569865159..75fa8863073 100644 --- a/Build/source/texk/xdvipdfmx/src/pdfximage.c +++ b/Build/source/texk/xdvipdfmx/src/pdfximage.c @@ -875,7 +875,17 @@ ps_include_page (pdf_ximage *ximage, const char *filename) MESG("pdf_image>> %s\n", distiller_template); MESG("pdf_image>> ..."); } - +#ifdef MIKTEX + { + char *p; + for (p = (char *)filename; *p; p++) { + if (*p == '\\') *p = '/'; + } + for (p = (char *)temp; *p; p++) { + if (*p == '\\') *p = '/'; + } + } +#endif error = dpx_file_apply_filter(distiller_template, filename, temp); if (error) { WARN("Image format conversion for \"%s\" failed...", filename); diff --git a/Build/source/texk/xdvipdfmx/src/spc_dvips.c b/Build/source/texk/xdvipdfmx/src/spc_dvips.c index 70484258032..04cc3c1b2e3 100644 --- a/Build/source/texk/xdvipdfmx/src/spc_dvips.c +++ b/Build/source/texk/xdvipdfmx/src/spc_dvips.c @@ -537,7 +537,17 @@ spc_handler_ps_tricks_parse_path (struct spc_env *spe, struct spc_arg *args, gs_in = 0; return -1; } - +#ifdef MIKTEX + { + char *p; + for (p = (char *)gs_in; *p; p++) { + if (*p == '\\') *p = '/'; + } + for (p = (char *)gs_out; *p; p++) { + if (*p == '\\') *p = '/'; + } + } +#endif error = dpx_file_apply_filter(distiller_template, gs_in, gs_out); if (error) { WARN("Image format conversion for PSTricks failed."); @@ -614,7 +624,17 @@ spc_handler_ps_tricks_render (struct spc_env *spe, struct spc_arg *args) gs_in = 0; return -1; } - +#ifdef MIKTEX + { + char *p; + for (p = (char *)gs_in; *p; p++) { + if (*p == '\\') *p = '/'; + } + for (p = (char *)gs_out; *p; p++) { + if (*p == '\\') *p = '/'; + } + } +#endif error = dpx_file_apply_filter(distiller_template, gs_in, gs_out); if (error) { WARN("Image format conversion for PSTricks failed."); |