summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfximage.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-06-24 05:54:34 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-06-24 05:54:34 +0000
commit3263ca7a68ac88f0b6183415b9c5cdf7a3309c23 (patch)
tree0d5c85e1059a368cee26c00cfb1ec53523552b4c /Build/source/texk/dvipdfm-x/pdfximage.c
parent69f071323590602ba79d30c084b3c51ab5814269 (diff)
Remove unnecessary changes.
git-svn-id: svn://tug.org/texlive/trunk@55646 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfximage.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfximage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfximage.c b/Build/source/texk/dvipdfm-x/pdfximage.c
index b6b536588b0..ef6282e80ad 100644
--- a/Build/source/texk/dvipdfm-x/pdfximage.c
+++ b/Build/source/texk/dvipdfm-x/pdfximage.c
@@ -968,8 +968,11 @@ ps_include_page (pdf_ximage *ximage, const char *filename, load_options options)
#endif
#if defined(_WIN32)
+/* temp is always ASCII only. So fsyscp_stat() is not necessary for
+ * temp. However, filename can be non-ASCII UTF-8.
+ */
if (dpx_conf.file.keep_cache != -1 &&
- (fsyscp_stat(temp, &stat_t)==0 || stat(temp, &stat_t)==0) &&
+ stat(temp, &stat_t)==0 &&
(fsyscp_stat(filename, &stat_o)==0 ||
stat(filename, &stat_o)==0) &&
stat_t.st_mtime > stat_o.st_mtime) {