texlive[45349] Build/source/texk/kpathsea: kpathsea/db.c: fix for

commits+kakuto at tug.org commits+kakuto at tug.org
Wed Sep 20 01:33:18 CEST 2017


Revision: 45349
          http://tug.org/svn/texlive?view=revision&revision=45349
Author:   kakuto
Date:     2017-09-20 01:33:18 +0200 (Wed, 20 Sep 2017)
Log Message:
-----------
kpathsea/db.c: fix for DOSISH systems where _WIN32 is not defined

Modified Paths:
--------------
    trunk/Build/source/texk/kpathsea/ChangeLog
    trunk/Build/source/texk/kpathsea/db.c

Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog	2017-09-19 23:23:43 UTC (rev 45348)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2017-09-19 23:33:18 UTC (rev 45349)
@@ -1,3 +1,7 @@
+2017-09-19  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	* db.c: Fix for DOSISH systems in which _WIN32 is not defined.
+
 2017-05-03  Karl Berry  <karl at tug.org>
 
 	* texmf.cnf (TEXMFAUXTREES): new variable (default value empty

Modified: trunk/Build/source/texk/kpathsea/db.c
===================================================================
--- trunk/Build/source/texk/kpathsea/db.c	2017-09-19 23:23:43 UTC (rev 45348)
+++ trunk/Build/source/texk/kpathsea/db.c	2017-09-19 23:33:18 UTC (rev 45349)
@@ -93,9 +93,9 @@
   string top_dir = (string)xmalloc (len + 1);
   string cur_dir = NULL; /* First thing in ls-R might be a filename.  */
   FILE *db_file = fopen (db_filename, FOPEN_R_MODE);
-#if defined(WIN32)
+#if defined(MONOCASE_FILENAMES)
   string pp;
-#endif
+#endif /* MONOCASE_FILENAMES */
 
   strncpy (top_dir, db_filename, len);
   top_dir[len] = 0;
@@ -104,14 +104,16 @@
     while ((line = read_line (db_file)) != NULL) {
       len = strlen (line);
 
-#if defined(WIN32)
+#if defined(MONOCASE_FILENAMES)
       for (pp = line; *pp; pp++) {
+#if defined(_WIN32)
         if (kpathsea_IS_KANJI(kpse, pp))
           pp++;
         else
+#endif /* _WIN32 */
           *pp = TRANSFORM(*pp);
       }
-#endif
+#endif /* MONOCASE_FILENAMES */
 
       /* A line like `/foo:' = new dir foo.  Allow both absolute (/...)
          and explicitly relative (./...) names here.  It's a kludge to



More information about the tex-live-commits mailing list