diff options
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/dpxfile.c | 11 |
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; } |