summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-03 09:58:30 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-03 09:58:30 +0000
commit99eca4d649a45342ac0edaac98e6e20a836250b0 (patch)
tree0197a74f04da088c4010a9f963e3a127d12cfc71 /Build
parent53bcb690ae71fe2f8c1210c27b16d9cb81bd455c (diff)
texk/dvipdfm-x: modify path for Ghostscript (win32 only)
git-svn-id: svn://tug.org/texlive/trunk@39262 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm-x/dpxfile.c11
2 files changed, 14 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 790815fd993..7d0d793ed65 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-03 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * dpxfile.c: Change \ to / for WIN32 also in the case where
+ HAVE_MKSTEMP is defined (win32 only).
+
2015-12-30 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
* epdf.c: Fix in handling of page number for XeTeX.
diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c
index 301b79ed13f..b7f9c7b7dba 100644
--- a/Build/source/texk/dvipdfm-x/dpxfile.c
+++ b/Build/source/texk/dvipdfm-x/dpxfile.c
@@ -817,13 +817,20 @@ dpx_create_temp_file (void)
strcpy(tmp, _tmpd);
strcat(tmp, TEMPLATE);
_fd = mkstemp(tmp);
- if (_fd != -1)
+ if (_fd != -1) {
# ifdef WIN32
+ char *p;
+ for (p = tmp; *p; p++) {
+ if (IS_KANJI (p))
+ p++;
+ else if (*p == '\\')
+ *p = '/';
+ }
_close(_fd);
# else
close(_fd);
# endif /* WIN32 */
- else {
+ } else {
RELEASE(tmp);
tmp = NULL;
}