From 115f456baf2df09c5771b6b02564e37bb801a820 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Wed, 4 Jun 2008 10:03:13 +0000 Subject: synch with xetex repo (no effect on TL builds) git-svn-id: svn://tug.org/texlive/trunk@8548 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/xdvipdfmx/src/pdfximage.c | 12 +++++++++++- Build/source/texk/xdvipdfmx/src/spc_dvips.c | 24 ++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 3 deletions(-) (limited to 'Build') 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."); -- cgit v1.2.3