summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-01 00:09:46 +0000
committerKarl Berry <karl@freefriends.org>2009-06-01 00:09:46 +0000
commit1f4af4730e136afbd88453cd0effdfea9ef482cd (patch)
tree2ec3cb25c89b003756677d9ee92b792496967b62 /Build
parentbfd99f208bd0719e1d980f6e88a0ee92ecc17350 (diff)
translate ; to : in user_path
git-svn-id: svn://tug.org/texlive/trunk@13552 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog3
-rw-r--r--Build/source/texk/kpathsea/kpsewhich.c8
2 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index d7adc9c3118..98cacb2337b 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -2,6 +2,9 @@
* Update version numbers 5.0.0.
+ * kpsewhich.c (lookup): translate ; to : in user_path,
+ for consistency. Report from Tomek T.
+
2009-05-15 Peter Breitenlohner <peb@mppmu.mpg.de>
* absolute.c, hash.c: Avoid C99isms (variable declaration not at
diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c
index 794e790475f..e0280d816e7 100644
--- a/Build/source/texk/kpathsea/kpsewhich.c
+++ b/Build/source/texk/kpathsea/kpsewhich.c
@@ -239,6 +239,14 @@ lookup (kpathsea kpse, string name)
string *ret_list = NULL;
if (user_path) {
+ /* Translate ; to : if that's our ENV_SEP. See cnf.c. */
+ if (IS_ENV_SEP (':')) {
+ string loc;
+ for (loc = user_path; *loc; loc++) {
+ if (*loc == ';')
+ *loc = ':';
+ }
+ }
if (show_all) {
ret_list = kpathsea_all_path_search (kpse, user_path, name);
} else {