texlive[49397] Build/source/texk/kpathsea: doc, diag tweaks
commits+karl at tug.org
commits+karl at tug.org
Thu Dec 13 00:32:22 CET 2018
Revision: 49397
http://tug.org/svn/texlive?view=revision&revision=49397
Author: karl
Date: 2018-12-13 00:32:21 +0100 (Thu, 13 Dec 2018)
Log Message:
-----------
doc, diag tweaks
Modified Paths:
--------------
trunk/Build/source/texk/kpathsea/ChangeLog
trunk/Build/source/texk/kpathsea/cnf.c
trunk/Build/source/texk/kpathsea/expand.h
trunk/Build/source/texk/kpathsea/kpsewhich.c
Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog 2018-12-12 21:34:12 UTC (rev 49396)
+++ trunk/Build/source/texk/kpathsea/ChangeLog 2018-12-12 23:32:21 UTC (rev 49397)
@@ -1,3 +1,11 @@
+2018-12-12 Karl Berry <karl at freefriends.org>
+
+ * expand.h,
+ * pathsearch.h,
+ * cnf.c: doc fixes.
+
+ * kpsewhich.c (main): show path when --show-path can't run.
+
2018-12-11 Karl Berry <karl at freefriends.org>
* kpsewhich.c (main): formatting.
Modified: trunk/Build/source/texk/kpathsea/cnf.c
===================================================================
--- trunk/Build/source/texk/kpathsea/cnf.c 2018-12-12 21:34:12 UTC (rev 49396)
+++ trunk/Build/source/texk/kpathsea/cnf.c 2018-12-12 23:32:21 UTC (rev 49397)
@@ -1,7 +1,7 @@
/* cnf.c: read config files.
Copyright 1994, 1995, 1996, 1997, 2008, 2009, 2011, 2012, 2016,
- 2017 Karl Berry.
+ 2017, 2018 Karl Berry.
Copyright 1997-2005 Olaf Weber.
This library is free software; you can redistribute it and/or
@@ -140,14 +140,14 @@
value[len] = 0;
/* Suppose we want to write a single texmf.cnf that can be used under
- both NT and Unix. This is feasible except for the path separators
- : on Unix, ; on NT. We can't switch NT to allowing :'s, since :
- is the drive separator. So we switch Unix to allowing ;'s. On the
- other hand, we don't want to change IS_ENV_SEP and all the rest.
+ both Windows and Unix. This is feasible except for the path
+ separators: : on Unix, ; on Windows. We can't switch Windows to
+ allowing :, since : is the drive separator. So we switch Unix to
+ allowing ;. On the other hand, we don't want to change IS_ENV_SEP
+ and all the rest.
- So, simply translate all ;'s in the path
- values to :'s if we are a Unix binary. (Fortunately we don't use ;
- in other kinds of texmf.cnf values.) */
+ So, translate all ;'s in the path values to :'s if we'd normally
+ use :. (Fortunately we don't use ; as a normal character in values.) */
if (IS_ENV_SEP(':')) {
string loc;
Modified: trunk/Build/source/texk/kpathsea/expand.h
===================================================================
--- trunk/Build/source/texk/kpathsea/expand.h 2018-12-12 21:34:12 UTC (rev 49396)
+++ trunk/Build/source/texk/kpathsea/expand.h 2018-12-12 23:32:21 UTC (rev 49397)
@@ -1,6 +1,6 @@
/* expand.h: general expansion.
- Copyright 1993, 1994, 1996, 2008, 2011 Karl Berry.
+ Copyright 1993, 1994, 1996, 2008, 2011, 2018 Karl Berry.
Copyright 1999, 2005 Olaf Weber.
This library is free software; you can redistribute it and/or
@@ -34,7 +34,7 @@
#endif /* MAKE_KPSE_DLL */
-/* Do brace expansion and call `kpse_expand' on each element of the
+/* Do brace expansion and call `kpathsea_expand' on each element of the
result; return the final expansion (always in fresh memory, even if
no expansions were done). We don't call `kpse_expand_default'
because there is a whole sequence of defaults to run through; see
Modified: trunk/Build/source/texk/kpathsea/kpsewhich.c
===================================================================
--- trunk/Build/source/texk/kpathsea/kpsewhich.c 2018-12-12 21:34:12 UTC (rev 49396)
+++ trunk/Build/source/texk/kpathsea/kpsewhich.c 2018-12-12 23:32:21 UTC (rev 49397)
@@ -824,7 +824,8 @@
}
puts (kpse->format_info[user_format].path);
} else {
- WARNING ("kpsewhich: Cannot show path for unknown file type");
+ WARNING1 ("kpsewhich: Unknown file type, cannot show path:",
+ path_to_show);
}
}
More information about the tex-live-commits
mailing list