summaryrefslogtreecommitdiff
path: root/Build
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
parent69f071323590602ba79d30c084b3c51ab5814269 (diff)
Remove unnecessary changes.
git-svn-id: svn://tug.org/texlive/trunk@55646 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.c8
-rw-r--r--Build/source/texk/dvipdfm-x/pdfximage.c5
3 files changed, 12 insertions, 6 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 1aaebdee5f5..00d87720e64 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-24 Akira Kakuto <kakuto@w32tex.org>
+
+ * dpxfile.c, pdfximage.c: Remove unnecessary changes on
+ 2020-06-22.
+
2020-06-22 Akira Kakuto <kakuto@w32tex.org>
* dvipdfmx.c: Move dpx_delete_old_cache(image_cache_life)
diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c
index 099318e89a7..f12910f3a82 100644
--- a/Build/source/texk/dvipdfm-x/dpxfile.c
+++ b/Build/source/texk/dvipdfm-x/dpxfile.c
@@ -1028,12 +1028,10 @@ dpx_delete_old_cache (int life)
if (dpx_clear_cache_filter(de)) {
struct stat sb;
sprintf(pathname, "%s/%s", dir, de->d_name);
-#if defined(_WIN32)
- if (fsyscp_stat(pathname, &sb) != 0)
- stat(pathname, &sb);
-#else
+/* Here pathname is always ASCII only. So fsyscp_stat() is
+ * not necessary for Windows.
+ */
stat(pathname, &sb);
-#endif /* _WIN32 */
if (sb.st_mtime < limit) {
remove(pathname);
/* printf("remove: %s\n", pathname); */
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) {