texlive[55646] Build/source/texk/dvipdfm-x: Remove unnecessary
commits+kakuto at tug.org
commits+kakuto at tug.org
Wed Jun 24 07:54:34 CEST 2020
Revision: 55646
http://tug.org/svn/texlive?view=revision&revision=55646
Author: kakuto
Date: 2020-06-24 07:54:34 +0200 (Wed, 24 Jun 2020)
Log Message:
-----------
Remove unnecessary changes.
Modified Paths:
--------------
trunk/Build/source/texk/dvipdfm-x/ChangeLog
trunk/Build/source/texk/dvipdfm-x/dpxfile.c
trunk/Build/source/texk/dvipdfm-x/pdfximage.c
Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog 2020-06-23 23:54:26 UTC (rev 55645)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog 2020-06-24 05:54:34 UTC (rev 55646)
@@ -1,3 +1,8 @@
+2020-06-24 Akira Kakuto <kakuto at w32tex.org>
+
+ * dpxfile.c, pdfximage.c: Remove unnecessary changes on
+ 2020-06-22.
+
2020-06-22 Akira Kakuto <kakuto at w32tex.org>
* dvipdfmx.c: Move dpx_delete_old_cache(image_cache_life)
Modified: trunk/Build/source/texk/dvipdfm-x/dpxfile.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/dpxfile.c 2020-06-23 23:54:26 UTC (rev 55645)
+++ trunk/Build/source/texk/dvipdfm-x/dpxfile.c 2020-06-24 05:54:34 UTC (rev 55646)
@@ -1028,12 +1028,10 @@
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); */
Modified: trunk/Build/source/texk/dvipdfm-x/pdfximage.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/pdfximage.c 2020-06-23 23:54:26 UTC (rev 55645)
+++ trunk/Build/source/texk/dvipdfm-x/pdfximage.c 2020-06-24 05:54:34 UTC (rev 55646)
@@ -968,8 +968,11 @@
#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) {
More information about the tex-live-commits
mailing list.