diff options
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/dpxfile.c | 8 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfximage.c | 5 |
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) { |